removing HTML from python error message