Fix invalid syntax for Python 2.x