more clearly
```
attr_id =  escape(attrs.get('id', "id_{}".format(name)))
```