My python code does not return a page? Concerns HTML Forms
<p>for a school project, I am required to build a page using forms. However, my code does not return a page. Instead, it only returns my code in .txt form. I'm not sure why this is the problem. Is this the python code that I wrote is wrong?</p>

<pre><code>#!/usr/bin/python
print "Content-type: text/html"
print

#May 17
import cgi, cgitb
cgitb.enable()

form=cgi.FieldStorage()

#May19
dataset1=open('Book1.csv','r')
dataset2=open('Race Demographic by state.txt','r')

sources='''&lt;hr&gt;&lt;h4&gt;Sources!&lt;/h4&gt;&lt;a     href="http://en.wikipedia.org/wiki/Demographics_of_the_United_States"&gt;Race Demographics&lt;/a&gt;
&lt;a href="http://voices.yahoo.com/average-sat-scores-state-2010-7702520.html?cat=4"&gt;SAT     Scores&lt;/a&gt;
&lt;a href="http://lisa.stuy.edu/~keiran.carpen/BriansDirectory/Sat scores by     state.txt"&gt;SAT Scores txt file&lt;/a&gt;
&lt;a href="http://lisa.stuy.edu/~keiran.carpen/BriansDirectory/Race Demographic by     state.txt"&gt;Race Demographics txt file&lt;/a&gt;&lt;/body&gt;&lt;/html&gt;'''

def datasplitter(x):
    data = x.read()
    return data.split("\n")


def datdatamang(x):
    data = datasplitter(x)
    index = 0
    WhileNumber = 0
    while index &lt; len(data):
        WhileNumber = 0
        string = data[index]
        string.split(" ")
        x=''
        while WhileNumber &lt; len(string):
            if string[WhileNumber] == ',':
                x=x+'&lt;/td&gt;&lt;td&gt;'
            else:
                x=x+string[WhileNumber]
            WhileNumber+= 1
        ' '.join(string)
        data[index]='&lt;tr&gt;&lt;td&gt;'+x+'&lt;/td&gt;&lt;/tr&gt;'
        index+=1
    result=' '.join(data)
    result='''&lt;table border='1'&gt;'''+result+'&lt;/table&gt;'
    return result
#May 19
def getDescription():
    page = ''
#May20
    if 'Submit' in form:
        if "Description" in form:
            page+= 'Ever since its conception, the SAT examinations have been widely     controversial.Many individuals believe that their race is the most intellectually superior,     and that their SAT scores reflect on their superiority. It is my job to find this     correlation between scores and race and end the battle among the races!'
        if "High SAT Scores" in form:
            page+= datdatamang('Book1.csv')
        if "Race Demographics" in form:
            page+= datdatamang('Race Demographics by state.txt')
        if "source" in form:
            page+= sources
#May 19

#May 20
print '''&lt;!doctype html&gt;&lt;title&gt;SAT Analysis&lt;/title&gt;'''
print '''&lt;body&gt;'''+getDescription()+'''&lt;/body&gt;&lt;/html&gt;'''



#May 17 - Writing the analysisV2.html file and starting the code
#May 19 - Tables, and the like
#May 20 - Writing if statements, building the page.
</code></pre>
