I can open a linux terminal via python via
import subprocess
subprocess.run('xterm')
or
subprocess.run('gnome-terminal')
once these are open, or when they open, how can I use python to pass them input?
in case 1, how can I tell them to immediately on open, run "python3 "filename""
and if possible, case 2, how can I continue to give commands and input, in the case that the python file requires user input and I would like to automate it?