take screenshot in python on mac os x,os.system('screencapture screen.png')