Remove unused code problematic on python3

See merge request !1933
2 jobs for master in 0 seconds
Status Job ID Name Coverage
  External
failed ERP5.PerformanceTest-Master

00:35:11

passed SlapOS.Eggs.UnitTest-Master.Python3

00:33:13