I think we must implement something like Python's Popen object. http://docs.python.org/2/library/subprocess.html#popen-objects