Support for python 2.6 and fall back more gracefully to older lxml versions. These changes support running on a relatively vanilla RHEL 6 machine.