ditto python slices for truncation