Tests expect HTML4 rather than XHTML
tidy_fragment uses tidy option rather than regex
pep8 style excluding E501,W293; updated copyright date