Are you using Python 3? The <> operator in Python 2 is considered bad form, and was removed in Python 3. Use != instead.
Join the #python-forum IRC channel on irc.freenode.net!
Please do not PM members regarding questions which are meant to be discussed publicly. The point of the forum is so that others can benefit from it. We don't want to help you over PMs or emails.