Change NotImplementedError to IOError