Add lxml dependency
Interface changes and fix some tests