TJ: added dependency on lxml.
TJ: made test work for python2.7