print("""Python version: %s
dist: %s
linux_distribution: %s
system: %s
machine: %s
platform: %s
uname: %s
version: %s
mac_ver: %s
""" % (
    sys.version.split('\n'), str(platform.dist()), linux_distribution(),
    platform.system(), platform.machine(), platform.platform(), platform.
    uname(), platform.version(), platform.mac_ver()))
How can I find the current OS in Python?