# !/usr/bin/python import subprocess subprocess.call('echo "tell application \"Finder\" to sleep" | osascript ', shell=True)
!/usr/bin/python
import subprocess
subprocess.call('echo "tell application "Finder" to sleep" | osascript ', shell=True)