Building the graph database from one Python module