Reconcile the two previous commits (json/to_dict)

Also fix some to_dict move things that were incomplete.
And some PEP8 fixes.

closes #1060
closes #1061
Tell groff manpages are utf-8

This should fix the display of manpages with accents (mainly boobank).
Force updating modules after upgrade

fixes #1066

Also, some small PEP8 fixes.