modify the following code  so that the output can be in a tabular format:

import blpapi
import json


def main():
    # Setup connection to NAME_1 servers
    options = blpapi.SessionOptions()
    options.setServerHost("localhost")
    options.setServerPort(8194)

    # Create and start session
    session = blpapi.Session(options)
    session.start()

    # Open and get service
    session.openService("//blp/cmp")
    service = session.getService("//blp/cmp")

    # Request is a JSON object
    request = {
# "operation":"CohortStats",
# "show_headers":"true",
# "cohort_universe":"clo_assets",
# "cohort_filters":"Months Since Last Update=0;Deal Name{}\"RPARK 1A\"\"OHECP 2015-3A\"\"RYEH 1A\"\"BABSE 2018-1A\"\"ARESE 2013-6A\"\"ARESE 9A\"\"NEWH 2A\"\"SPAUL 8A\"\"HARVT 11A\"\"CORDA 5A\"\"HARVT 18A\"\"CGMSE 2015-3A\"\"MRLPK 1A\"\"CGMSE 2018-1A\"\"CGMSE 2018-1A\"\"OHECP 2017-6A\"\"CONTE 3A\"\"CORDA 6A\"\"VOYE 1A\"\"SPAUL 3RA\"",
# "cohort_groups":"Deal Name;Country Code",
# "cohort_columns":"Balance;Total Deal Balance",
# "missing_label":"--"
        
        "security": "JPMAC 2007-CH3 M2", 
        "input_value": 100, 
        "prepay_rate": "100BTM", 
        "rate_type": "forward",
        "operation": "Analytics; OAS"
}

    # Send request
    response = make_request(request, service, session)

    print(json.dumps(response))

    # Close session
    session.stop()


def make_request(request_json, service, session):
    """Format request and send"""
    # Form request into name/value objects
    request_body = {
        "cmpExcelRequest": {
            "parameters": [{"name": x, "value": str(request_json[x])} for x in request_json],
        }
    }
    # Send request
    request = service.createRequest("request")
    request.getElement("cmpJsonRequest").setElement("requestData", json.dumps(request_body))
    response = get_response(request, session)

    # Get response
    if response.hasElement("cmpJsonResponse"):
        return json.loads(response.getElement("cmpJsonResponse").getElement("responseData").getValueAsString())
    else:
        return response


def get_response(request, session):
    """Send request and wait for response"""
    session.sendRequest(request)

    # Loop through all events until response or failure
    continue_loop = True

    while continue_loop:
        event = session.nextEvent(1000)
        event_type = event.eventType()

        for msg in event:
            if event_type == blpapi.Event.RESPONSE:
                response = msg
                continue_loop = False
           