Web.py work

switching and templating