also, use pprint before putting the dict output to a file, as seen in ptop_make_case_mapping: https://github.com/dimagi/commcare-hq/blob/master/corehq/apps/hqcase/management/commands/ptop_make_case_mapping.py#L43