code: def cast_pars_dict(pars_dict):
      
  
      o = {}
  
      for pname, pdict in pars_dict.items():
  
          o[pname] = {}
  
          for k, v in pdict.items():
  
              if k == 'free':
                  o[pname][k] = bool(int(v))
              elif k == 'name':
                  o[pname][k] = v
              else:
                  o[pname][k] = float(v)
  
      return o
docs: Cast the bool and float elements of a parameters dict to
      the appropriate python types.