Moved keys.py to app (issue #29)