Start on converting index.py/bm.py into a wsgiapp in yourls/app.py