Switched back to cPickle to avoid recursion depth error