Fix _TestZZZNumberOfObjects for python3 syntax