code: def group_by_types(self):
          
          for t in self.types_of_specie:
              for site in self:
                  if site.specie == t:
                      yield site
docs: Iterate over species grouped by type