Any arg that was passed positionally will be passed to *args. And any arg passed as a keyword will be passed to **kwargs.
If you have positional args values and names then you can do:
kwargs.update(dict(zip(myfunc.func_code.co_varnames, args)))
to convert them all into keyword args.