For future searchers, while @falsetru's answer is correct for addressing the syntax error, pyinstaller will not work for the asker's version of Python.
This may change in later versions of pyinstaller.
cx_freeze will work for Windows and Linux (which are the asker's requirements). I've had good luck with py2app for OSX.