import importlib


def get_callback_function(callback_function_name):
    """Get callback function from a string interpreted as Python module
    :param callback_function_name: name of the python module and function as string
    :return: callback function
    """
    class_name = callback_function_name.split(".")[-1]
    module = callback_function_name.replace(f".{class_name}", "")
    lib = importlib.import_module(module)
    return getattr(lib, class_name)