changes according to python 3