py3: fix compare