It's unrelated to this PR, but if it's npy file why not just use pylearn2.utils.serial.load
Then there would be no need for preprocess.