def create_xml_attributes(module, xml):
 xml_attrs = {}
 for (attr, val) in xml.attrib.iteritems():
  if (attr not in module.fields):
   if (attr == 'parent_sequential_url'):
    attr = 'parent_url'
   xml_attrs[attr] = val
 module.xml_attributes = xml_attrs

def create_xml_attributes ( module , xml ) : xml_attrs = { } for ( attr , val ) in xml . attrib . iteritems ( ) : if ( attr not in module . fields ) : if ( attr == 'parent_sequential_url' ) : attr = 'parent_url' xml_attrs [ attr ] = val module . xml_attributes = xml_attrs
make up for modules which dont define xml_attributes by creating them here and populating .