add the data.py which is used to get the reduced data from couchdb, view.txt is used to create the view