Combining Python and AppleScript