Some dictionary-related cleanup
Merge pull request #54 from msoucy/ref/python/dicts

Some dictionary-related cleanup