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