Gradient Descent Algorithm In Python