Note that a[1][:] does not work. It first does a[1] which is the number 1. Later, it tries to access all numbers [:] of that single number, which results in an error.
That solution works when a is a 2D (3x3) array, which is a little bit different from what I asked. But, yes, I can convert my vector of vectors in an 2D array and that will work.