The command you are attempting to run uses Python 2 syntax. It is incompatible with Python 3, so if you try to use that, you should get a syntax error.
Either upgrade the script to Python 3 (about time already), or fix the execution path so that it can be run with the obsolescent Python version.