py3: fix cmp