astropy.wcs
Given a slice as input sanitise it to an easier to parse format.format
This function returns a list ndim long containing slice objects (or ints).
ndim