import importlib


def website_bridge(plugin, item_id, item_module, **kwargs):
    """Bridge between main.py file and each website modules files

    Args:
        plugin (codequick.script.Script)
        item_id (str): Website menu to build (e.g. allocine)
        item_module (str): Channel module (e.g. resources.lib.websites.allocine)
    Returns:
        Iterator[codequick.listing.Listitem]: Kodi 'item_id' menu
    """

    module = importlib.import_module(item_module)
    return module.website_entry(plugin, item_id)