code: def append_child(self, child):
          
          child.parent = self
          self.children.append(child)
          self.changed()
docs: Equivalent to 'node.children.append(child)'. This method also sets the
          child's parent attribute appropriately.