Run a subprocess in a pseudo terminal
conda install free::ptyprocess
Ptyprocess allows you to launch a subprocess in a pseudo terminal (pty), and interact with both the process and its pty.