luis-suggested defaultdict and append dicts to mutmatrix array