Added prettyprint for dict modules

Another random addition which might be worth merging.