move to python 3 syntax