Basic Cleanup for sanity

Moved the KEYS_TIME_IN dictionary out of def so that it is
only instantiated once.
Removed some blank lines as well as unecessary print statements.