def index(req): thetitle = "Welcome to Python" mysite = siteheader(thetitle) mysite += sitebody(thetitle) mysite += sitefoot() return mysite def siteheader(title): str = "
This is test page of Python on my Apache" return str