FYI, in python, != is preferred ... I think <> syntax is becoming obsolete