only import lxml dependency when it is needed