code: def _xml_to_dict(self, element):
          
          return_dict = {}
          for el in element:
              return_dict[el.tag] = None
              children = el.getchildren()
              if children:
                  return_dict[el.tag] = self._xml_to_dict(children)
              else:
                  return_dict[el.tag] = el.text
          return return_dict
docs: Take an XML element, iterate over it and build a dict
  
          :param element: An xml.etree.ElementTree.Element, or a list of the same
          :returns: A dictionary