Fixed syntax for Python 3