Instead of importing platform, you can check it by `sys.platform`. By the way, `prefix` is a missing value in this script.