plaintext = u'algor\u00edtimo'
encodedtext = plaintext.encode('utf-8')
decodedtext = encodedtext.decode('utf-8')
print (encodedtext)
print repr(decodedtext)
CnBsYWludGV4dCA9IHUnYWxnb3JcdTAwZWR0aW1vJwoKZW5jb2RlZHRleHQgPSBwbGFpbnRleHQuZW5jb2RlKCd1dGYtOCcpCmRlY29kZWR0ZXh0ID0gZW5jb2RlZHRleHQuZGVjb2RlKCd1dGYtOCcpCgpwcmludCAoZW5jb2RlZHRleHQpCnByaW50IHJlcHIoZGVjb2RlZHRleHQp