title: What is the best way to implement a Tree Structure in python
body: <p>What is the best way to implement a tree structure (generic - not binary) in python? My intuition would have the following skeleton:</p>
  
  <pre><code>class TNode(self, data):
     #enter things for each individual node
  
  class TStructure(self):
     #enter code for implementing nodes that reference each other.
  </code></pre>