import inspect


def _find_objects(modules, objtype):
  """Finds objects of a certain type on the given modules.

  Args:
    modules: A list of modules to search for objects.
    objtype: The type of objects to be searched for.

  Returns:
    A dictionary containing the found objects.
  """
  objects = {}
  for module in modules:
    members = inspect.getmembers(module)
    for name, value in members:
      if inspect.isclass(value) and issubclass(value, objtype):
        objects[name] = value
  return objects