title: Problem extracting tweet info with runcmd
body: <p>I'm trying to get this code to pull the media from any tweet that mentions my twitter handle, convert it using ffmpeg via the subprocess module, then send the converted media back to the person as a reply.</p>
  <pre><code>import tweepy
  from tweepy import Stream
  from tweepy.streaming import StreamListener
  from datetime import datetime
  import time
  import subprocess
  
  stdout = subprocess.PIPE
  def runcmd(cmd):
      x = subprocess.Popen(cmd, stdout=subprocess.PIPE)
      return x.communicate(stdout)
  
  import json
  import random
  
  class StdOutListener(StreamListener):
      def on_data(self, data):
          clean_data = json.loads(data)
          tweetId = clean_data['id']
          tweet_name = clean_data['user']['screen_name']
          tweet_media = clean_data['entities']['media'][0]['media_url']
          print(tweet_media)
          tweet_photo = runcmd('ffmpeg -i', tweet_media, 'output.jpg')
          tweet = 'Here ya go'
          now = datetime.now()
          dt_string = now.strftime(&quot;%d/%m/%Y %H:%M:%S&quot;)
          print(' Reply sent to @'+tweet_name, 'on', dt_string, '\n' ' Message:', tweet, '\n')
          respondToTweet(tweet_media, tweet, tweetId)
  </code></pre>
  <p>But I always end up getting this error:</p>
  <pre><code>Exception has occurred: TypeError
  runcmd() takes 1 positional argument but 3 were given
     tweet_photo = runcmd('ffmpeg -i', tweet_media, 'output.jpg')
  </code></pre>
  <p>So obviously, I can't put <code>tweet_media</code> in between <code>ffmpeg -i</code> and <code>output.jpg</code> so how would I go about converting <code>tweet_media</code> without errors?</p>