docs: def findBest(self, pattern):
          """ Returns the *best* match in the region (instead of the first match) """
          findFailedRetry = True
          while findFailedRetry:
              best_match = None
              all_matches = self.findAll(pattern)
              for match in all_matches:
                  if best_match is None or best_match.getScore() < match.getScore():
                      best_match = match
              self._lastMatch = best_match
              if best_match is not None:
                  break
              path = pattern.path if isinstance(pattern, Pattern) else pattern
              findFailedRetry = self._raiseFindFailed("Could not find pattern '{}'".format(path))
              if findFailedRetry:
                  time.sleep(self._repeatWaitTime)
          return best_match