Troubleshoot your problems

SyntaxError: invalid syntax

You’re most probably using Python 3.5 or below (including Python 2)