Fixed a syntax error on Python 3