Reformat xml_importer.py to be more readable

Readability counts.

@cahrens @dmitchell