Updated slope.py