python catch exception keyboardinterrupt