python 3 fix