You can use the solve() function of Linear algebra module of numpy to solve the system of equations. For your set of equations, you can try the following code:
>>> import numpy as np>>> a = np.array([[4,5,6], [2,3,4], [4,5,2]])>>> b = np.array([25,15,17])>>> x = np.linalg.solve(a, b)>>> xarray([2., 1., 2.])