Python NumPy: pretty print multidimensional ndarray