views.py: Use html.tostring() instead of etree.tostring(method='html')