Simplified api for pylearn2