Reformat xml_importer.py to be more readable