subclassing ndarray in cython