I have a python script bundled into a application (I'm on a mac) and have the application set to be able to open .zip files. But when I say "open foo.zip with bar.py" how do I access the file that I have passed to it? 
Additional info:
Using tkinter.
What's a good way to debug this, as there is no terminal to pass info to?
If I'm not greatly mistaken, it should pass the name of the file as the first argument to the script - sys.argv[1].
Python: open a file *with* script?