I guess I actually used [platform.system()](https://docs.python.org/2/library/platform.html#platform.system) in the past.