Como escrever palavras em qualquer outro aplicativo em Python

import pyautogui
print(pyautogui.press('I'))
Programmer of empires