The CLI is clunky and abuses objects for what should probably be functional code. Investigate the use of a PyPI library like click or docopt.