fix for Python3