I am trying to declare dynamic variables in order to solve a linear equation using cvxopt package hence using exec function as follows: exec(code) where code is defined as