I am trying to \'destructure\' a dictionary and associate values with variables names after its keys. Something like
params = {\'a\':1,\'b\':2} a,b = params.
from operator import itemgetter params = {'a': 1, 'b': 2} a, b = itemgetter('a', 'b')(params)
Instead of elaborate lambda functions or dictionary comprehension, may as well use a built in library.