Simple operating system detection method for Python