converted log.html to use base.html template
clean up app.py