<filename>util.py
import base64

link = '<KEY>'

with open('tmp.txt', 'w') as f:
    f.write(base64.b64encode(link))

<filename>util.py
import base64

link = '<KEY>'

with open('tmp.txt', 'w') as f:
    f.write(base64.b64encode(link))
