docs: def strip_errors(obj):
      """
      Reads through and error object and replaces the error dict with the
      value
  
      args:
          obj: the error object/dictionary
      """
      rtn_obj = copy.deepcopy(obj)
      try:
          del rtn_obj["__error_keys__"]
      except KeyError:
          pass
      for key in obj.get('__error_keys__', []):
          rtn_obj[key] = rtn_obj[key]['value']
      return rtn_obj