Or you could use the pickle module.
(import pickle first)
with open('file', 'wb') as data: # Create or overwrite a file
pickler = pickle.Pickler(data)
dic = {}
dic["Mode"] = your_object["Mode"] # Copy the value of your property
pickler.dump(dic) # Dump it
And then :
with open('file', 'rb') as data: # Open the file
depickler = pickle.Unpickler(data)
dic = depickler.load() # Load the dic
your_object["Select"] = dic["Mode"] # Get the value