Primitive text direction feature detector

v.1.1 of text direction feature detector :)
http://docs.scipy.org/doc/numpy/reference/generated/numpy.gradient.html seems to do what you're after.