python base64 encode file content