added gzip compression to pickling, changed to cPickle