Support for lxml 5
lxml 5.0 has been released recently. Would be nice to support it so that distros can drop lxml 4.
Changelog looks harmless (e.g. removal of deprecated methods, which we do not appear to use anymore):
https://github.com/lxml/lxml/blob/lxml-5.1.0/CHANGES.txt#L47