Replace NotImplemented with NotImplementedError