fix for python 3