If you want to have the output of a Unix command in a file and display it at the same time, you can [tee][1]write it to stdout and read it from there, for example:
>>> command_line = '/bin/find / |tee tmp.txt'
>>> args = shlex.split(command_line)
>>> p = subprocess.Popen(args,stdout=subprocess.PIPE)
commuicate() stdout POpen. , .