moved entry point behind a keyboardinterrupt try block, pep8 changes