def METHOD_NAME(self, module_type):
    """Returns list of all objects of module name's type."""
    if hasattr(OPTS, module_type):
        # Retrieve the name from OPTS if it exists,
        # otherwise just use the input
        module_type = getattr(OPTS, module_type)
    try:
        mod_tuples = self.objects[module_type]
        mods = [mod for kwargs, mod in mod_tuples]
    except KeyError:
        mods = []
    return mods