Saving stdout from subprocess.Popen to file, plus writing more stuff to the file Saving stdout from subprocess.Popen to file, plus writing more stuff to the file linux linux