make addons_xml_generator.py compatible with python3