python base64 encode string variable