fix encoding issue with lxml>=2.3.6 and libxml2==2.7.6
refactor scripts. test them.
somewhat more explicit dependencies