Instead of using ```getattr```, what about using a registry-based approach? E.g.

```
@BUILDERS.add('mytag')
def mytag_from(...):
....

nodebuilder = BUILDERS.get_by_tag(tag)
```