use xmltodict in place of xml traversals