fix syntax for Python 3