class IndexHandler(webapp.RequestHandler):

    def get(self):
        date = 'foo'
template_values = {'data': data}
path = os.path.join(os.path.dirname(__file__) + '/../templates/', 'main.html')
self.response.out.write(template.render(path, template_values))


class FooHandler(webapp.RequestHandler):

    def get(self):
        pass
Project structure for Google App Engine