1.1.2 Running scripts with a GUI
There is one Mac OS X quirk that you need to be aware of: programs that talk to the Aqua window manager (in other words, anything that has a GUI) need to be run in a special way. Use pythonw instead of python to start such scripts.
See About this document... for information on suggesting changes.