<human>:  Take screenshot in Python on Mac OS X
<bot>: Here is some code to take screenshot 'screen.png' on mac os x

os.system('screencapture screen.png')

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.