how to find the name of the current operating system
best way seems to be to use:
::

sys.platform
if sys.platform == "darwin":
...

http://docs.python.org/library/
The Python Standard Library — Python v2.6.2 documentation
http://docs.python.org/library/os.html
16.1. os — Miscellaneous operating system interfaces — Python v2.6.2 documentation
http://www.google.com/search?q=python+determine+if+operating+system+is+mac&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a
python determine if operating system is mac - Google Search
http://bytes.com/topic/python/answers/576977-how-determine-operating-system-use
how to determine Operating System in Use? - Python answers