I'm writing a script where I'm asking the user to provide some python code that I store in a xml file to reuse it later. The thing is, I'd like to test this code before storing it to see if it works at all.
How can I achieve that without actually executing the script?