Fix errors in python3

See merge request !403
3 jobs for master in 0 seconds
Status Job ID Name Coverage
  External
passed SlapOS-Master.UnitTest-Master

02:00:07

passed SlapOS.Eggs.UnitTest-Master.Python2

00:14:12

passed SlapOS.Eggs.UnitTest-Master.Python3

00:14:33