very web.py but using function to handle the request