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.
Forgot to uninstall the OpenDocument/AppleEvent handler.  It would not have
affected anything, but just trying to be clean.  Fixed.
Added a small test case to test argv emulation, which self-describes what
to do to properly test the capability.
Moved all new code from pyi_launch.c to pyi_util.c.  Also changed naming style
for functions from camelcase to lowercase/underscore.
More refactoring as per matysek.
Made the test_argv_emulation test a little simpler; there is now no
spec file required.
Small fix for test_argv_emulation.py
Merge pull request #50 from dhyams/mac_argv_emulation

Add argv_emulation for windowed OSX applications.