use lxml for pretty-print