title: Trouble passing arguments into os.system()
body: <p>I want to run a python script 5 times. The output from each run is an image, and I want 5 images saved at the end. To do this I am using the os.system() command, and I end up with the following error:</p>
  
  <pre><code>TypeError: system() takes at most 1 argument (3 given)
  </code></pre>
  
  <p>Here is my code:</p>
  
  <pre><code>import os
  i = 1
  
      while i &lt; 6:
          run = os.system ('python main.py', 'input laska.png', 'output laska_save' + str(i) + '.png')
          i = i + 1
  </code></pre>
  
  <p>Not sure what the problem here might be. I essentially want the output argument to be <code>laska_save1, laske_save2 ... laska_save5</code>. The increment happens 5, once everytime after the called script runs. </p>
  
  <p>Any guidance is appreciated. </p>