pyautogui locate on both screen code example
Example: screenshot region pyautogui
>>> import pyautogui
>>> im = pyautogui.screenshot(region=(0,0, 300, 400))
>>> import pyautogui
>>> im = pyautogui.screenshot(region=(0,0, 300, 400))