title: osascript and python gives error (-2741)
body: <p>Thanks for taking the time to read this. I am calling up a osascript inside of a python script on Mac OS X 10.7.</p>
  
  <pre><code>osascript -e 'tell application "Microsoft PowerPoint" to activate' -e 'tell application "System Events" to key code 124'
  </code></pre>
  
  <p>Here is the snippet from the script that's erroring:</p>
  
  <pre><code>import os
  cmd = """osascript -e 'tell application "Microsoft PowerPoint" to activate' -e 'tell application "System Events" to key code 124'
  os.system(cmd)
  </code></pre>
  
  <p>Here is the error log:</p>
  
  <pre><code>[error] [client 192.168.10.65] 92:96: 
  [error] [client 192.168.10.65] syntax error: Expected end of line, etc. but found identifier. (-2741)
  </code></pre>
  
  <p>Been banging my head for hours, please help or direction is greatly appreciated! =)</p>