Stochastic Gradient Descent (SGD) with Python