py3: add custom cmp in py3