Checks return code and logs success/fail
Script for testing execution of applescript using Python, just like xbmc plugin will do