So what I had to do to send the commands was the following:
import pyautogui #sends ctrl + s pyautogui.hotkey('ctrl', 's') #presses enter time.sleep(0.5) pyautogui.press('enter')