Add/clean up setup/audit code.
Minor cleanup.
Some cleanup.
Pylinting main.py.
Pylinting test_api.py.
Pylinting test_cmdline.py.