Hi suzanne,
I've played about with this in the past and the following should help you on your way. The thing to remember is to make sure the python() call uses double quotes immediately inside it and then to escape any python special characters or quotes.
e.g,
Code:
python("myVar = \"hello\"");
python("print myVar")
will result in the script editor printing hello
Simon