fix py3k syntax that is a syntax error in python 2

Fix issue 3605, syntax errors printed to the console when installing via pip.

https://code.google.com/p/sympy/issues/detail?id=3605