Began python code to create coefficient matrices.