Python Insert Variable Value Solver