title: How do you search subprocess output in Python for a specific word?
body: <p>I'm trying to search through a variable's output to find a specific word, then have that trigger a response if True.</p>
  
  <pre><code>variable = subprocess.call(["some", "command", "here"], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
  
  for word in variable:
      if word == "myword":
          print "something something"
  </code></pre>
  
  <p>I'm sure I'm missing something big here, but I just can't figure out what it is.  </p>
  
  <p>Thanks in advance for setting me straight.  </p>