Add use_pty argument to spawn/run