Using lxml and urlopen instead of dict2xml, xml2dict, and requests