modifications to shear.py and adding new custom shear script because shear isn't working