Python implementation of various stochastic approximation algorithms