Python NumPy: this function takes a list of matrices and converts it into a 2D matrix filling in zeros where no matrix is specified