So you have a value, and you want to associate it with a name. That's what we call a key/value pair, and in Python, you should use a dict (dictionary) to store that.
I recommend you use JSON format to save it to disk. You can put your key/value pairs into a dict, then save the whole dict to a JSON file. It's easy and reliable.
http://stackoverflow.com/questions/4759634/python-json-tutorialhttps://stackoverflow.com/questions/4759634/python-json-tutorial