use popen for python evaluation to isolate execution environment and to capture output