Re-writes htt file into valid html for BeautifulSoup to parse