* Support replacing config
* Support replacing config
* Add unit test for replace_cfig
* pre-commit
* fix
* modify the docstring
* rename function
* fix a bug
* fix a bug and simplify the code
* simplify the code
* add replace_cfg_vals for some scripts
* add replace_cfg_vals for some scripts
* add some unit tests