def application(environ, start_response):
    import sys
    path = '/opt/repo/ROOT'
    if path not in sys.path:
        sys.path.append(path)
    from index import pyindex
    output = pyindex(environ)
    start_response('200 OK', [('Content-type', 'text/html')])
    return [output]
