import platform os_type = platform.system()