def is_child_of(self, node):
    'Checks if this object is a child of the given node object.'
    if (node.depth >= self.depth):
        return False
    return (self.parent(node.depth) == node)
Checks if this object is a child of the given node object.
def is_child_of(self, node):
    
    if (node.depth >= self.depth):
        return False
    return (self.parent(node.depth) == node)