another fix for python 3