def base64_decode(input, errors='strict'):
 assert (errors == 'strict')
 output = base64.decodestring(input)
 return (output, len(input))

def base64_decode ( input , errors = 'strict' ) : assert ( errors == 'strict' ) output = base64 . decodestring ( input ) return ( output , len ( input ) )
unicode-safe base64 base64 api only talks bytes .