Django urlsafe base64 decoding with decryption,base64.urlsafe_b64decode(uenc.encode('ascii'))