Solving Linear Equations In Python