You can treat a widget like a dictionary, with attributes being keys. For example:
label = tk.Label(root)
...
some_attribute = "background"
some_value = "red"
label[some_attribute] = some_value
You can also build up a dictionary of attributes and values, and pass that to the config
method:
values = {some_attribute: some_value}
label.config(values)