Cleaning stuff up to stop PyCharm from complaining so much.  Whitespace, renaming input to trigger, etc.
Moved CAH into cah.py, because it makes more sense there (removing cahload on the theory that it's not necessary).