Return the information from the pedigree file as a dictionary.
        family id is key and a list with dictionarys for each individual 
        as value.
        
        Returns:
            families (dict): A dictionary with the families

def to_dict(self):
        """
        Return the information from the pedigree file as a dictionary.
        family id is key and a list with dictionarys for each individual 
        as value.
        
        Returns:
            families (dict): A dictionary with the families
        """
        
        self.logger.debug("Return the information as a dictionary")
        families = {}
        for family_id in self.families:
            family = []
            for individual_id in self.families[family_id].individuals:
                individual = self.families[family_id].individuals[individual_id]
                family.append(individual.to_json())
                self.logger.debug("Adding individual {0} to family {1}".format(
                    individual_id, family_id
                ))
            self.logger.debug("Adding family {0}".format(family_id))
            families[family_id] = family
        
        return families