some allowances for python 2.6 / etree, but not enough