ENH: writing config file code