title: How do I get a parent node through recursion in python?
body: <p>In python, using constructors and Class I have created nodes. I need to get its parent and their parent nodes. I have got that node, its parent(that has marked when created by a constructor).</p>
  <p>I also tried to create a function to print a node and its parents. However how do I pass the parents'parent node so i can get that also.</p>