Use property setter in NumpyExtension class for Python 3 compatibility