using web.py and jinja2 to place reward functionality on the web