Change index.py from mod_python to flask