process = subprocess.Popen('./Recommender', shell=True, stdin=subprocess.PIPE)
process.stdin.write('close'.encode())
How to write a python script that can communicate with the input and output of a swift executable?