igraph modularity python