Switch to using cPickle library over JSON