'List imbrication : List_by_services : [ List_by_hosts : [ Service_dependency_tuples : ( ) ] ]'

def make_all_dep_tuples(self, hosts, parent_tuples=[()], dependent_tuples=[[()]]):

    res = []
    for ptuple in parent_tuples:
        parent = {'host_name': self.get_dependency_tuple_host_name(ptuple), 'svc_desc': self.get_dependency_tuple_service_description(ptuple)}
        for dtuple in dependent_tuples:
            dependent = {'host_name': self.get_dependency_tuple_host_name(dtuple), 'svc_desc': self.get_dependency_tuple_service_description(dtuple)}
            dependent['host_object'] = next((host for host in hosts if (host[0] == dependent['host_name'])))
            res = self.make_dep_tuple(parent, dependent, ptuple, dtuple, res)
    return res
