code: def write_forward_run(self):
          
          with open(os.path.join(self.m.model_ws,self.forward_run_file),'w') as f:
              f.write("import os\nimport numpy as np\nimport pandas as pd\nimport flopy\n")
              f.write("import pyemu\n")
              for ex_imp in self.extra_forward_imports:
                  f.write('import {0}\n'.format(ex_imp))
              for tmp_file in self.tmp_files:
                  f.write("try:\n")
                  f.write("   os.remove('{0}')\n".format(tmp_file))
                  f.write("except Exception as e:\n")
                  f.write("   print('error removing tmp file:{0}')\n".format(tmp_file))
              for line in self.frun_pre_lines:
                  f.write(line+'\n')
              for line in self.frun_model_lines:
                  f.write(line+'\n')
              for line in self.frun_post_lines:
                  f.write(line+'\n')
docs: write the forward run script forward_run.py