core: use pprint.pformat to pretty print activity message_list

using json in 37b795fb was wrong,
because not all arguments can be converted to json (for example
DateTime instances)

This also enable the format using pprint.pformat for args, instead
of a simple str that was done in ActivityTool_getMessageList.
4 jobs for fix/activity_listbox_json_dumps
Status Job ID Name Coverage
  External
running ERP5.CodingStyleTest-Master

25772:58:37

running ERP5.UnitTest-Master.Medusa

25772:58:39

running SlapOS.Eggs.UnitTest-Master.Python2

25772:58:32

running SlapOS.Eggs.UnitTest-Master.Python3

25772:58:48