Some minor cleanups in the Python build.