Saving a variable to a data store with python?

At the end of my code I need to save a variable so it can be used in the next deploy. I inteded to use a data store but I soon found out that those are only usable with Node.js.
Is there a way for me to do this with Python? Are there alternatives I could use?
Thank you.