Added prettyprint for dict modules

Another random addition which might be worth merging.
And if we send to an external file, probably okay to leave an indent of 1 or 2 :-)