Python package for decomposing multi-dimensional arrays into sub-arrays (slices) according to multiple criteria.