When lxml.etree.XSLT(tree) is called, most of the time it hangs with no error messages and sometimes it works fine. My dev environment is Apache, mod_wsgi, Python 3, Django