Remove this line to make it run.
#! /usr/bin/env python
import sys
try: 
    import cgitb
    cgitb.enable()
except ImportError:
    sys.stderr = sys.stdout

def cgiprint(inline=''):
    sys.stdout.write(inline)
    sys.stdout.write('\r\n')
    sys.stdout.flush()           

contentheader = 'Content-Type: text/html'

thepage = '''
%s

%s

'''
h1 = '

%s

' if __name__ == '__main__': cgiprint(contentheader) # content header cgiprint() # finish headers with blank line title = 'Hello Linux Python' headline = h1 % 'Hello Linux Python' print thepage % (title, headline)
Remove this line to make it run.