You can do this in one line with NumPy’s built-in functions using np.repeat with np.diff:
np.repeat
np.diff
def expand_split_list(T): return np.repeat(np.arange(len(T) - 1), np.diff(T))