code: def append(self, node):
          
          if node.parent == self.key and not self.elapsed_time:
              self.children.append(node)
          else:
              # Recursive call
              for child in self.children:
                  if not child.elapsed_time:
                      child.append(node)
docs: To append a new child.