Rearrange imports in conf.py.