Added tool for generating conffile

Run ./tools/build_conf.py [filename]