def XMLtoPython(xmlStr=r"<STR_LIT>"):
<EOL>if os.path.exists(xmlStr):<EOL><INDENT>with open(xmlStr) as f:<EOL><INDENT>xmlStr=f.read()<EOL><DEDENT><DEDENT>print(xmlStr)<EOL>print("<STR_LIT>")<EOL>return<EOL>
given a string or a path to an XML file, return an XML object.