dbchangelog = 'http://www.host.org/xml/ns/dbchangelog'
xsi = 'http://www.host.org/2001/XMLSchema-instance'
E = lxml.builder.ElementMaker(nsmap={None: dbchangelog, 'xsi': xsi})
Python: adding xml schema attributes with lxml