Solving A System Of Equations Python