pubsub: Fix Python3 incompatibilities

2 jobs for master in 0 seconds
Status Job ID Name Coverage
  External
failed SlapOS.Eggs.UnitTest-Master.Python2

00:08:39

failed SlapOS.Eggs.UnitTest-Master.Python3

00:16:29