python version of vbmod (variational bayes for network modularity)