'Replace one child `Node` with another child or children.'

def replace(self, old, new):

    index = self.index(old)
    if isinstance(new, Node):
        self.setup_child(new)
        self[index] = new
    elif (new is not None):
        self[index:(index + 1)] = new
