So I have figured out how to receive output from an application using

process = subprocess.Popen("my_app", shell = True, stdout = subprocess.PIPE, stderr = subprocess.PIPE)
info = process.communicate()

But how do I SEND info TO an app? I have an application that asks for a yes(y) or no(n) confirmation before proceeding. Is subprocess waiting for this app to exit before communicating? Is this app still considered 'alive' while it waits for input? Please help me automate this manual task. Thanks.