cPickle.dump(obj, open('save.p', 'wb'))
obj = cPickle.load(open('save.p', 'rb'))
Python: How do I write a list to file and then pull it back into memory (dict represented as a string convert to dict) later?