Solution should be returned as a relational object, specifically with Ne (not equals).  The <> notation is no longer valid in Python 3.