fix <> operator for python3