updates for Python 3