beremiz

get the WaitPythonCommands return (semaphore error code) to quit python_iterator loop when semaphore is destroyed
import time,sys
def myprintfunc(arg):
print arg
sys.stdout.flush()
return arg