class One:
def __init__(self):
Two().keyDir()
class Two:
def keyDir(self):
self.keyboardDir = {}
print(self.keyboardDir)
def message(self):
self.keyboardDir["Word"] = {'Key':'Value'}
print(self.keyboardDir)
Two().message()
if __name__ == "__main__":
One()