Further attempts to fix problems with using print, pprint solved.