python base64 encode text file