Python Determine Positive Or Negative Shear