I\'d like to write a short python script that puts my computer to sleep. I\'Ve already searched the API but the only result on suspend has to do with delayed execution. What
subprocess.call(['osascript', '-e','tell app "System Events" to sleep'])