Fix Python 3 builds.