Refactor `cf.conf` to python file `conf.py`