def getMatchResult(match): result = {} for score in matchpoints.getScore(match): points = score[1] if points not in result: result[points] = [] result[points].append(score) return result
def getBestScores(num_matches): result = {} for match in range(1, num_matches): try: for score in matchpoints.getScore(match): points = score[1] if points not in result: result[points] = [] result[points].append(score) except: pass return result