A dynamic graph generator in Python and an implementation of a community detection algorithm