fix for python 3x