finish web.py,doctest ok