code: def rank(self, member):
          
          score = self._members.get(member)
          if score is None:
              return None
          return bisect_left(self._scores, (score, member))
docs: Get the rank (index of a member).