def METHOD_NAME():
    if len(sys.argv) > 1:
        xmlfile = sys.argv[1]
    else:
        try:
            local_dir = os.path.join(GLib.get_user_data_dir(), "gtg")
            flatpak_dir = os.path.join(GLib.get_home_dir(),
                                       '.var', 'app',
                                       'org.gnome.GTG',
                                       'data', 'gtg')
            local_xml = os.path.join(local_dir, "gtg_data.xml")
            flatpak_xml = os.path.join(flatpak_dir, "gtg_data.xml")
            try:
                local_xml_time = os.path.getmtime(local_xml)
            except OSError:
                local_xml_time = 0
            try:
                flatpak_xml_time = os.path.getmtime(flatpak_xml)
            except OSError:
                flatpak_xml_time = 0
            if local_xml_time == flatpak_xml_time:
                if os.path.exists(flatpak_xml):
                    xmlfile = flatpak_xml
                elif os.path.exists(local_xml):
                    xmlfile = local_xml
                else:
                    print("Could not find the data file in default locations")
                    raise Exception("Could not find data file in default "
                                    "locations")
            elif local_xml_time < flatpak_xml_time:
                xmlfile = flatpak_xml
            elif local_xml_time > flatpak_xml_time:
                xmlfile = local_xml
            else:
                print("This should not happen")
            print("Reading tasks from %s" % (xmlfile))
        except Exception:
            print()
            usage()
    if len(sys.argv) > 2:
        outputfile = sys.argv[2]
    else:
        # Use a reasonable default, and write out where it's sent
        outputfile = "/tmp/gtg_data.xml"
        print("Saving anonymized tasks to %s" % (outputfile))
    anonymize(xmlfile, outputfile)