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