python runtimeerror input () lost sys stdin