Python implementation of Hierarchical Random Graphs