Make xslt work again

"Fixes" the

    object of type 'lxml.etree._XSLTResultTree' has no len()

error when trying to use any xslt transformation.