As a follow up I found that using pickle requires opening the file for reading or writing bitwise while cPckle handles this implicity (which seems to me the more Pythonic way of doing things). So this:
fo = open(“myFile.dat”, “w”)
cPickle.dump(someData,fo)
fo.close()
becomes this:
fo = open(“myFile.dat”, “wb”)
pickle.dump(someData,fo)
fo.close()
Without the change, the operation throws a type error complaining that the data being written needs to be bytes, not a string.