code: def get_root( self, **kwargs ):
          ''' Returns this tree if it has no parents, or, alternatively, moves
              up via the parent links of this tree until reaching the tree with
              no parents, and returnes the parentless tree as the root.
          '''
          if self.parent == None:
              return self
          else:
              return self.parent.get_root( **kwargs f get_root( self, **kwargs ):
          ''' Returns this tree if it has no parents, or, alternatively, moves
              up via the parent links of this tree until reaching the tree with
              no parents, and returnes the parentless tree as the root.
          '''
          if self.parent == None:
              return self
          else:
              return self.parent.get_root( **kwargs )
docs: Returns this tree if it has no parents, or, alternatively, moves
              up via the parent links of this tree until reaching the tree with
              no parents, and returnes the parentless tree as the root.