static final PyObject returnValue(final PyMultiarray a) {
        if (a.dimensions.length == 0) {
            if (PyMultiarray.typeToNElements(a._typecode) == 1) {
                return Py.java2py(Array.get(a.data, a.start));
            } else {
                return new PyComplex(
                        ((Number) Array.get(a.data, a.start)).doubleValue(),
                        ((Number) Array.get(a.data, a.start + 1)).doubleValue());
            }
        }
        return a;
    }