Map all child nodes to one object's attributes

def nodes_to_object(self, node, object):
        "Map all child nodes to one object's attributes"

        for n in list(node):
            self.node_to_object(n, object)