code: def pick(seq, func, maxobj=None):
      
      maxscore = None
      for obj in seq:
          score = func(obj)
          if maxscore is None or maxscore < score:
              (maxscore, maxobj) = (score, obj)
      return maxobj
docs: Picks the object obj where func(obj) has the highest value.