I like the pprint module in Python. I use it a lot for testing and debugging. I frequently use the width option to make sure the output fits nicely within my terminal window
As a temporary workaround you can try dumping in JSON format. You lose some type information, but it looks nice and keeps the order.
import json pprint(data, indent=4) # ^ugly print(json.dumps(data, indent=4)) # ^nice