title: How should I organize my scripts which are mostly the same?
body: <p>So I'm new to Python and I need some help on how to improve my life. I learned Python for work and need to cut my workload a little. I have three different scripts which I run around 5 copies of at the same time all the time, they read XML data and add in information etc... However, when I make a change to a script I have to change the 5 other files too, which is annoying after a while. I can't just run the same script 5 times because each file needs some different parameters which I store as variables at the start in every script (different filepaths...).</p>
  <p>But I'm sure theres a much better way out there?</p>
  <p>A very small example:</p>
  <pre><code>script1.py
  
  xml.open('c:\file1.xls')
  while True:
      do script...
  
  
  script2.py
  
  xml.open('c:\file2.xls')
  while True:
      do exactley the same script...
  
  etc...
  </code></pre>