output as transform theano and python functions