Run a subprocess in a pseudo terminal

WWW: https://github.com/pexpect/ptyprocess
