Scans folder for modules.

def scan_and_reimport(mod_type: str) -> List[Tuple[str, str]]:
    """Scans folder for modules."""
    mod_enabled, mod_disabled = get_modules(mod_type)
    errors = []
    for mod in mod_enabled + mod_disabled:
        if mod in sys.modules:
            msg = safe_reload(sys.modules[mod])
        else:
            msg = safe_load(mod)
        if msg is not None:
            errors.append((mod, msg))
    return errors