That does indeed work (with your suggested fix for the `getattr` line below). My only remaining question is whether this achieves the equivalent relative import as `from .backends import XXX` as opposed to `from backends import XXX` (I don't know enough about `__import__` to know)? If it does, then we're good!