python convert dict to str code example
Example: python get ppretty string representaiton of dictinary
from pprint import pformat
# Sufficiently large to make newline character in new format
d = {"a": {'b': [1, 2, 3]}, "c": [4, 5], 'd': {'e': {'f': [6, 7, 8]},
'g': [9, 10]}, 'h': 11, 'i': 12}
pformat(d)