softmax functions in theano and numpy