dict = {'toto': 'tata'}

def toto():
    return dict

toto()['prout']= 'tt'
dict
{'toto': 'tata', 'prout': 'tt'}