python version of "Fast unfolding of community hierarchies in large networks"