I think this should be cPickle. It provided a noteable speedup. I'm not sure if that still holds for python3.