fixing another cmp issue for python3