Add version python outer broadcast

This implemented the same algo as the one used in Theano in python.