fixing server.py and index.tpl