how to execute process in python where data is written to stdin?,process.stdin.close()