def execute_func(function, **kwargs):
    """
	Take the function and the args in parameters,
	and return the result of the function with the good args
	"""
    send = {}
    for var in function.__code__.co_varnames[:function.__code__.co_argcount]:
        if var in kwargs and kwargs[var]:
            send[var] = kwargs[var]
        else:
            send[var] = None
    return function(**send)
