'Copy the current node, and make it the new acting parent.'

def default_visit(self, node):

    newnode = node.copy()
    self.parent.append(newnode)
    self.parent_stack.append(self.parent)
    self.parent = newnode
