fix for Python 3