Is it possible to make this line of code valid?
description, content, state, city, datetime = makeTupleRightOrder(dictionary)
this makeTupleRightOrder would get the 'parameters' from the left side of the assignment, convert their names to strings and build a list getting their values from the dictionary.
map(lambda x:dictionary[x],[description, content, state, city, datetime])locals().update(dictionary)accomplishes your end goal of converting a dictionary to variable names.locals()should not be modified.