As far as I know, Python has 3 ways of finding out what operating system is running on:
os.name
sys.platform
I believe the platform module is probably preferred for new code. The others existed before it. It is an evolution, and the others remain for backwards compatibility.