Python framework for processing, transforming and outputting dictionaries