Fix python random sample dump. Fix more upgrades due to WenZhe's branch. Variational stochastic starts to work correctly.