python raise keyboardinterrupt exception