def decode(self, input, final=False): assert self.errors == 'strict' return base64.decodebytes(input)