updated bridge app.py to support csv (and merged new code with json feature)