Let me give you a simple example of what I'm doing (not in reality). We've got names in one column and some values in another. There might be some duplicate names in there so I've used names as keys and the values are in a Union "under" those keys. I hope this helps in visualizing.

As the original post stated, I need to add a value, that is only in the module, to one or more of those keys. I would rather not go into details as to why, but that's just how it is.

I Have looked in to nested dictionaries before and I don't believe that is going to cut it, I might be wrong though.

If you still think that works, could you please try and explain your idea?