python base64 encode and decode string