def call_func(script_ref, func_name: str, *args, **kwargs):
    """Calls a function inside the module passed as parameter
    
    Arguments:
        script_ref {python_module} -- the reference to the module
        func_name {str} -- the name of the function to be called
    
    Returns:
        result -- contains the function result
    """
    return {'result': getattr(script_ref, func_name)(*args, **kwargs)}