screenshot = pyscreenshot.grab()
screenshot.show()
screenshot = pyscreenshot.grab(bbox=(10, 10, 500, 500))
screenshot.show()
pyscreenshot.grab_to_file('screenshot.png')
Take screenshot in Python on Mac OS X