Maybe break into functions and then put the entry point under `if __main__ == '__name__':`.

(like, get `strings_from_xml(xml, prefix='odk_')` etc)