Migrates to Python 3.