def exec_statement(statement):
 statement = textwrap.dedent(statement)
 cmd = ['-c', statement]
 return __exec_python_cmd(cmd)

def exec_statement ( statement ) : statement = textwrap . dedent ( statement ) cmd = [ '-c' , statement ] return __exec_python_cmd ( cmd )
executes a python statement in an externally spawned interpreter .