Steepest Descent Python