Solving System Of Equations In Python