Implemented the Python attribute protocol. Now these work:
Implemented the Python attribute protocol. Now these work:

hasattribute(element, 'aname')

getattribute(element, 'aname', [])

stchris/untangle