modified get-data.py to output json as well as csv