Better message for NotImplementedError in __contains__