def index(req): thetitle = "Welcome to Python" mysite = siteheader(thetitle) mysite += sitebody(thetitle) mysite += sitefoot() return mysite def siteheader(title): str = "" + title + "\n" str += "\n" return str def sitefoot(): str = "\n" return str def sitebody(title): str = "

" + title + "

\n" str += "

This is test page of Python on my Apache
" return str