normalize output to dict format
Merge pull request #39 from dimagi/normalize_output

normalize output to dict format