def seq_python():
    seq = np.empty(lag_seq.sum() + n_iter * n_reg, dtype=int)
i = 0
for lag in lag_seq:
    for k in range(lag):
        seq[i] = 0
i += 1
for k in range(n_reg):
    seq[i] = regular_sequence[k]
i += 1
return seq
Generate 1d numpy with chunks of random length