flask and d3 setup