import sys, os

def application(environ, start_response):
    status = '200 OK'
    body = f'PYTHON OK! Version: {sys.version}
PID: {os.getpid()}
'.encode('utf-8')
    headers = [
        ('Content-Type', 'text/plain; charset=utf-8'),
        ('Content-Length', str(len(body)))
    ]
    start_response(status, headers)
    return [body]
