Since this function has same codes with get_xmltreefile, why not just calling get_xmltreefile?
like this:
def get_xml():
    xml = get_xmltreefile()
    return xml.name