I finally got it to work by eliminating some of the white space like this:
subprocess.run(["ssh", IP, "/usr/bin/gpio", "write 0 1"])
I still do not quite understand why ssh was complaining, rather than bash.