<|file_name|>app.py<|end_file_name|><｜fim▁begin｜>#!/usr/bin/env python
# -*- coding: UTF-8 -*-

# If this page isn't working, try executing `chmod +x app.py` in terminal.

# enable debugging
import cgitb, cgi; cgitb.enable()
from classes import Factory

fieldStorage = cgi.FieldStorage()
factory = Factory.Factory()
webApp = factory.makeWebApp(fieldStorage)


def <|fim_middle|>():
    print "Content-Type: text/html"
    print  # signals end of headers

outputHeaders()

print webApp.getOutput()
<｜fim▁end｜>
outputHeaders