fix for Python 3x