def create_instances(settings, modules):
    """
	Parse 'settings' and returns a list of tuples with the following structure:
		[(name1, obj1), (name2, obj2)...]
	where 'name' is the name of the module instance, and 'obj' is the instance
	"""
    instances = []
    for instance_name, module_name, config in settings:
        instances.append((instance_name, modules[module_name](config)))
    return instances
