I think that is better to use `getattr` then using the `__dict__`. Like `getattr(module, name)`