Update gensourcematrix.py