Pexpect makes Python a better tool for controlling other applications.
conda install conner_org::pexpect
Pexpect is a pure Python module for spawning child applications; controlling them; and responding to expected patterns in their output.