I using Python to read equations and variables from a txt file for so to use CasADi to output the derivatives in another txt.

However, I'm running into an annoying problem where my equations are interpreted by Python as strings(naturally), which means that CasADi is not able to interpret them as equations. Is there a solution to this? Is it possible to do some sort of type conversion when importing from the txt file?

Thanks!