in most cases, I think cPickle.dump(..., protocol=cPickle.HIGHEST_PROTOCOL) is a more efficient way to go ... up to you though