code: def best_match(self, matches):
          
          best_match = None
          for match, message in matches:
              self.matcher.set_seq1(message)
              ratio = self.matcher.quick_ratio()
              if best_match is None or ratio >= best_match[0]:
                  new_ratio = self.matcher.ratio()
                  if best_match is None or new_ratio > best_match[0]:
                      best_match = (new_ratio, match)
          return best_match
docs: Find the most similar string to self.target.
  
          Given a list of candidate strings find the closest match to
          self.target, returning the best match with a score indicating closeness
          of match.
  
          :param matches: A list of candidate matches
          :returns: A tuple of (score, best_match)