Solving Linear Equations with Python