def get_top_players(self, user, num_top_players):
        self._read_leaderboard()
        scores = self.scores
        leaderboard = []

        player = None
        try:
            for i in xrange(num_top_players):
                s = scores[i]
                username = s.user
                row = self._get_row(username, s)
                if username == user.username:
                    player = row

                leaderboard.append(row)
        except __HOLE__:
            pass

        if player is None:
            player = self._get_user_row(user)

        if len(leaderboard) > 0:
            self._rank_leaderboard(leaderboard, self._get_rank(leaderboard[0]['score']))

        bottom = len(scores) <= num_top_players
        return self.create_response(True, bottom, leaderboard, player)
dataset/ETHPy150Open turbulenz/turbulenz_local/turbulenz_local/models/apiv1/leaderboards.py/Leaderboard.get_top_players