python thread.join keyboardinterrupt