fix typeerror when calling xml.parse_dict