rewrite pelicanconf.py