a small python utility which parses nested-keys in dictionaries into sub-dictionaries