commented process.wait after pty.spawn shell ends