replace the now-invalid popen2 with a call to subprocess.Popen.
Attach a file by drag & drop or click to upload