steal web.py code for static serving ;)