Update for Python 3.