This should work:

    mod_name = 'backends.' + module_name
    ...
    __import__(mod_name, globals(), level=1)