code: def _prepare_kappa(model):
      
      import kappy
      kappa = kappy.KappaStd()
      model_str = export(model, 'kappa')
      kappa.add_model_string(model_str)
      kappa.project_parse()
      return kappa
docs: Return a Kappa STD with the model loaded.