Yes python3 requires you to explicitly define a __hash__ method, __lt__ is for the sorted method.