I have a very big dictionary with keys containing a list of items, these are unordered. I would like to group certain elements in a new key. For example
input=