def import_vars(**dict_list):
"""
dict_list: namespaces to import
Examples
--------
dic1 = dict(x=1, y=1)
dic2 = dict(a=1, b=1)
exec(import_vars(dic1=dic1, dic2=dic2))
print(x, y, a, b)
"""
code = "\n".join(f"{key} = {dic}['{key}']" for dic in dict_list for key in dict_list[dic])
return code