If you're using a GUI, then that may help you decode the platform too - for example wxPython has wx.Platform, there's also platform.platform() , sys.platform and os.name
You could try import win32api and checking for an exception ;-) -- http://mail.python.org/mailman/listinfo/python-list