Cómo simular un KeyPress usando pyautogui
import pyautogui, time
pyautogui.press('h')
pyautogui.press('e')
pyautogui.press('l')
pyautogui.press('l')
pyautogui.press('o')
magical wizard