code: def decode_int(self, str):
          
          n = 0
          for c in str:
              n = n * self.BASE + self.ALPHABET_REVERSE[c]
          return n
docs: Decodes a short Base64 string into an integer.
  
          Example:
              ``decode_int('B7')`` returns ``123``.