Solve linear equation system python. This Python code uses the fsolve function from the scipy.