Fixed misuse of NotImplemented as NotImplementedError