add __main__ test code
Create read_dictionaries function