Implements comparison operator, closes #10

Most of this is built into `__cmp__`, but I've overwriten *that* with
`__eq__` so that comparisons with strings return False.