how to call python function from nodejs,sys.stdout.flush()