use d3 with networkx python in flask