Under OSX, watch for OpenDocument AppleEvents, and add the files passed in
to the sys.argv command line on the Python side.
bugfix: global variables argv_pyi/argc_pyi were not handled correctly in the
previous rev.
Small tweaks to some printouts, and added cleanup code for the argv_pyi allocation.