Change x->nd to PyGpuArray_NDIM(x)
Change CudaNdarray_HOST_DIMS to PyGpuArray_DIMS
Change CudaNdarray_HOST_STRIDES to PyGpuArray_STRIDES
Change CudaNdarray_DEV_DATA to PyArray_DATA