Please use python tags in your post for the code. Otherwise the indentation is difficult to see.
is
is a type of python comparison and >
(and similar) is a type of comparison. You don't use them together, so is >
will not make sense. Fix that (and the odd parentheses on the elif line) and you should be a lot closer.