The forms <> and != are equivalent. But in Python 2.7.3 the <> form is considered obsolete.
<>
!=
return a <> b # Noncompliant
return a != b