def compare_score(self, player):
    does_rank = False
    for p in self.ranks:
        if (int(player.score) > int(p.score)):
            does_rank = True
    if does_rank:
        self.ranks.append(player)
        self.ranks.sort(key=(lambda p: int(p.score)), reverse=True)
        self.ranks.pop()
    return does_rank
def compare_score(self, player):
    does_rank = False
    for p in self.ranks:
        if (int(player.score) > int(p.score)):
            does_rank = True
    if does_rank:
        self.ranks.append(player)
        self.ranks.sort(key=(lambda p: int(p.score)), reverse=True)
        self.ranks.pop()
    return does_rank