look at dict_clust_flask.py to integrate in data and the random select stuff