Python Calculations With Variable Decelerations