<s>[INST] How to check what OS am I running on in Python? What do I need to look at to see if I'm on Windows, Unix, etc?
 [/INST] >>> import os
>>> print os.name
posix
>>> import platform
>>> platform.system()
'Linux'
>>> platform.release()
'2.6.22-15-generic'

See: platform â Access to underlying platformâs identifying data
 </s>