I have a numpy array of arrays, say 400x80. I want to turn it into an array 400x160 so that each item would be formed like this:

Here each frame of 80 is copied into the beginning of the next frame and the first frame gest 80 zeroes. So how to do such thing in numpy? Is there a mechanism that can generalize to three or more frames?