Solution to 'Dictionaries' problem in Python Village