title: python subprocess and shlex
body: <p>I am trying to get the following python code to work, I am just not able to get the syntax to work. Can someone assist?</p>
  
  <pre><code>import subprocess
  import shlex
  
  subprocess.call(shlex.split('top -d 5 -n 1 -b -o %CPU | head -n 12 &gt; output.txt'))
  </code></pre>