Python Stochastic Gradient Descent