going to use subprocess.Popen and send output to a file