less strict lxml version matching
Abstracted parse_import.