Let's simplify and imagine I have this:
#file a.py
import b
def register(name, value):
b.mydict[name] = value
#file b.py
mydict = {}
print(mydict)
#file c.py
import b
print(b.mydict)
File a.py will register some values using the defined function.
File b.py and c.py will print an empty dictionary.
I know this is really a newbie question but...
How do I make it so that when the function registers it updates mydict in the other files as well?