NotImplementedError in html.py