>>> import xmltodict
>>> from pprint import pprint
>>> xml_example = open("xml_example.xml").read()
>>> pprint(xml_example)
# Convert XML to Dictionary
>>> xml_dict = xmltodict.parse(xml_example)
>>> int_name = xml_dict["interface"]["name"]
>>> int_name
# Convert Dictionary to XML
>>> xmltodict_unparse(xml_dict)