Python Stochastic Gradient Descent Example