Fix for namespace definition with lxml.

Namespaces for requests are specified differently when using
the lxml module, compared to the xml module. This patch provides
the necessary fixes.
Incorporating the changes proposed by fbacchella.
Merge branch 'jbrendel-lxml_nsmap_fix'