use lxml.html.tostring as a backup if stripping root element fails