Replace the configuration file by a python script