Theano based operations replaced previous python math operations