Better to use pylearn2.utils.serial.load and save for loading and dumping pickle files.