xml_base can be retrieved in parse method if necessary
Compatibility with Python3