code: def pst_from_parnames_obsnames(parnames, obsnames,
                                 tplfilename='model.input.tpl', insfilename='model.output.ins'):
      
      simple_tpl_from_pars(parnames, tplfilename)
      simple_ins_from_obs(obsnames, insfilename)
  
      modelinputfilename = tplfilename.replace('.tpl','')
      modeloutputfilename = insfilename.replace('.ins','')
  
      return pyemu.Pst.from_io_files(tplfilename, modelinputfilename, insfilename, modeloutputfilename)
docs: Creates a Pst object from a list of parameter names and a list of observation names.
      Default values are provided for the TPL and INS
      Args:
          parnames: list of names from which to make a template file
          obsnames: list of obsnames to read in
          tplfilename: filename for TPL file (default: model.input.tpl)
          insfilename: filename for INS file (default: model.output.ins)
  
      Returns:
          Pst object