added support for passing element attributes that are non valid python
names in the element constructor