import sys

def application(environ, start_response):
    body = f"Python app is working!\nPython version: {sys.version}\n"
    start_response("200 OK", [
        ("Content-Type", "text/plain; charset=utf-8"),
        ("Content-Length", str(len(body.encode()))),
    ])
    return [body.encode()]