code: 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, objectf 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)
docs: Map all child nodes to one object's attributes