simple fixes from python3 port

See merge request !1941
10 jobs for master in 0 seconds
Status Job ID Name Coverage
  External
passed ERP5.CodingStyleTest-Master

01:46:46

failed ERP5.PerformanceTest-Master

00:34:37

passed SlapOS.Eggs.UnitTest-Master.Python2

00:31:28

passed SlapOS.Eggs.UnitTest-Master.Python3

00:58:24

passed Wendelin.UnitTest-Master

00:47:08

failed SlapOS.Eggs.UnitTest-Master.Python2

00:23:38

failed SlapOS.Eggs.UnitTest-Master.Python2

00:24:48

failed SlapOS.Eggs.UnitTest-Master.Python2

00:20:40

failed SlapOS.Eggs.UnitTest-Master.Python2

00:23:44

failed Wendelin.UnitTest-Master

01:14:07