Replace getopt with argparse. This will break scripts that use the command line interface.