fix syntax for python 3