title: Python script doesn't delete file from archive -- printed command via terminal works fine
body: <p>I'm creating an archive in Python using this code:</p>
  
  <pre><code>#Creates archive using string like [proxy_16-08-15_08.57.07.tar]
  proxyArchiveLabel = 'proxy_%s' % EXECUTION_START_TIME + '.tar'
  log.info('Packaging %s ...' % proxyArchiveLabel)
  
  #Removes .tar from label during creation
  shutil.make_archive(proxyArchiveLabel.rsplit('.',1)[0], 'tar', verbose=True)
  </code></pre>
  
  <p>So this creates an archive fine in the local directory. The problem is, there's a specific directory in my archive I want to remove, due to it's size and lack of necessity for this task.</p>
  
  <pre><code>ExecWithLogging('tar -vf %s --delete ./roles/jobs/*' % proxyArchiveLabel)
  # ------------
  def ExecWithLogging(cmd):
      print cmd
      p = subprocess.Popen(cmd.split(' '), env=os.environ, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
      while(True):
        log.info(p.stdout.readline().strip())
        if(p.poll() is not None):
          break
  </code></pre>
  
  <p>However, this seems to do basically nothing. The size remains the same. If I print <code>cmd</code> inside of the <code>ExecWithLogging</code>, and copy/past that command to a terminal in the working directory of the script, it works fine. Just to be sure, I also tried hard-coding the full path to where the archive is created as part of the <code>tar -vf %s --delete</code> command, but still nothing seemed to happen.</p>
  
  <p>I do get this output in my INFO log: <code>tar: Pattern matching characters used in file names</code>, so I'm kind of thinking <code>Popen</code> is interpreting my command incorrectly somehow... (or rather, I'm more likely passing in something incorrectly). </p>
  
  <p>Am I doing something wrong? What else can I try?</p>