inbox = {} def Send(data, recipient): if recipient not in inbox.keys(): inbox[recipient] = [] inbox[recipient].append(data) def Fetch(user): return inbox[user]