One thing that you can do here is to create a dictionary where a single key has multiple values and then reverse it. For example,
dict1 = {"a": [1,2,3], "b": [4]}
dict2 = {value:key for key in dict1 for value in dict1[key]}
dict2
This will give output as - {1: 'a', 2: 'a', 3: 'a', 4: 'b'}