I know that it\'s possible to send printable input to subprocesses by writeing to their stdin
subprocess
write
stdin
from subprocess import,
Try pyautogui library. For example:
pyautogui.hotkey('ctrl', 'c') # ctrl-c to copy pyautogui.press('enter') # press the Enter key
More examples in the library webpage. For me it worked - see here.