docs: def find_model(config, obj, mods):
      """Given a list of mods (as returned by py_resources) attempts to
      determine if a given Python obj fits one of the models"""
      for mod in mods:
          if mod[0] != config:
              continue
  
          if len(mod) == 2:
              return mod[1]
  
          if len(mod) == 3 and mod[1] in obj:
              return mod[2]
  
      return None