use sys.platform instead of platform.system