base64 encode python script