content = open(chr(39)app/services/model_runners.py chr(39)).read()
start = content.find(chr(39)def run_climate_model chr(39))
end = content.find(chr(39)def run_feasibility_model chr(39))
new_func = open(chr(39)fix_climate.txt chr(39)).read()
result = content[:start] + new_func + content[end:]
open(chr(39)app/services/model_runners.py chr(39), chr(39)w chr(39)).write(result)
print(chr(39)Done chr(39))