Migrate to python 3.