Proper Theano Nets