Python Edit CSV headers
<p>I have the following data from a csv file called temp.</p>

<pre><code>Item,Description,Base Price,Available
2000-000-000-300,AC - CF/M Series Green For Black Hood,299.99,3
2000-000-000-380,AC - CF/M Series Green For White Hood,299.99,3
</code></pre>

<p>I need to change the headers to read</p>

<pre><code>Item Number,Item Description,List Price,QTY Available
</code></pre>

<p>I have been searching similar questions on here and haven't a solution that I can understand since I am relatively new to python programming. So far I have:</p>

<pre><code>import csv
import os

inputFileName = "temp.csv"
outputFileName = os.path.splitext(inputFileName)[0] + "_modified.csv"

with open(inputFileName) as inFile, open(outputFileName, "w") as outfile:
    r = csv.reader(inFile)
    w = csv.writer(outfile)
</code></pre>

<p>Which I know only reads the original file and then will write to _modified. How do I select the current headers and then change them so that they write to the new file?</p>
