import base64
import time
data = open("dummy.xls", 'rb').read()
base64_encoded = base64.b64encode(data).decode('UTF-8')
print ("Encoding your data")
print ("Saving to output.txt")
with open("output.txt", "a") as f:
print(data, file=f)
time.sleep(2)
print ("ALL DONE!!")