Python Stochastic Gradient Descent Sgd