Fix conf.py to remove deprecation warnings.