title: Run mplayer playlist from a python script
body: <p>first of all, Thank you for all the help I've gotten from this place so far! Keep up the good work!</p>
  
  <p>This is my first programming project so forgive me if this is a stupid question but I've come to a complete stop and can't find the answer anywhere!</p>
  
  <p>I've created a playlist and I can run it from the terminal with mplayer. But I want to make a Python script that does it for me including shuffling the list. </p>
  
  <p>I've managed to find a script that play a single song but not from a playlist.</p>
  
  <pre><code>import commands
  import os
  
  SOUND = 'music.mp3'
  
  command = 'mplayer %s 1&gt;/dev/null 2&gt;&amp;1' % SOUND
  os.system(command)
  </code></pre>
  
  <p>Ohyeah, I should probably mention that this is on a Debian system if that makes any difference.</p>
  
  <p>Thanks again!</p>