pickle is a module to serialize objects.
These objects can later (e.g. in another program) be automatically deserialized
pickle.dump(obj, file[,protocol])
A serialized version of the object obj will be written to the file file (a handle)
protocol (0=ascii, 1=compact, not readable, 2=opt. classes).