Create cli.py

Unit tests for cli.py using monkey patch to replace the requests module. Proof of concept.