encode string into base64 python