Make NumpyExtension a new-style class