LDA for gibbs sampling, python implementation