[testlib] Deal with set binary operator changes from python 3 [applied]