code: def _check_positions(self):
          '''Checks each bee to see if it abandons its current food source (has
          not found a better one in self._limit iterations); if abandoning, it
          becomes a scout and generates a new, random food source
          '''
  
          self.__verify_ready()
          max_trials = 0
          scout = None
          for bee in self._employers:
              if (bee.failed_trials >= max_trials):
                  max_trials = bee.failed_trials
                  scout = bee
          if scout is not None and scout.failed_trials > self._limit:
              self._logger.log(
                  'debug',
                  'Sending scout (error of {} with limit of {})'.format(
                      scout.error, scout.failed_trials
                  )
              )
              scout.values = self.__gen_random_values(f _check_positions(self):
          '''Checks each bee to see if it abandons its current food source (has
          not found a better one in self._limit iterations); if abandoning, it
          becomes a scout and generates a new, random food source
          '''
  
          self.__verify_ready()
          max_trials = 0
          scout = None
          for bee in self._employers:
              if (bee.failed_trials >= max_trials):
                  max_trials = bee.failed_trials
                  scout = bee
          if scout is not None and scout.failed_trials > self._limit:
              self._logger.log(
                  'debug',
                  'Sending scout (error of {} with limit of {})'.format(
                      scout.error, scout.failed_trials
                  )
              )
              scout.values = self.__gen_random_values()
docs: Checks each bee to see if it abandons its current food source (has
          not found a better one in self._limit iterations); if abandoning, it
          becomes a scout and generates a new, random food source