Note that it didn't actually work as written since gasPrice was set too low and also the verifyContract didn't work (so I had to verify it manually). Deployed to mainnet at 0xC91864A5A1E2F52aDdfb69e31b89a3b7783733c3.