replaced my homegrown option parser with argparse from the stdlib, refactored code to make that shift