Fix value-based comparison under Py3k.