base64 encode python code