def foo(**kwargs):
   locals().update(kwargs)
   return a + 3

print(foo(a=3))