title: Execute terminal commands in python3
body: <p>I am on a Raspberry Pi, and I am using a program called <code>fswebcam</code>, which allows you to take pictures with a webcam.</p>
  
  <pre><code>~$ fswebcam image.jpg
  </code></pre>
  
  <p>That command if entered in terminal takes a picture and saves it to your computer, however I want to build a simple python program that can access the terminal and execute that same command as I have listed above.</p>
  
  <p>I have tried to <code>import os</code> and use <code>os.system('fswebcam image.jpg')</code> But it isn't working for me. </p>
  
  <p>How can I have python execute terminal commands?</p>