def construct_request(model_type, client_name, client_pass, command, values):
    """
    Construct the request url.

    Inputs: - model_type: PServer usage mode type.
            - client_name: The PServer client name.
            - client_pass: The PServer client's password.
            - command: A PServer command.
            - values: PServer command arguments.

    Output: - base_request: The base request string.
    """
    base_request = ("{model_type}?"
                    "clnt={client_name}|{client_pass}&"
                    "com={command}&{values}".format(model_type=model_type,
                                                    client_name=client_name,
                                                    client_pass=client_pass,
                                                    command=command,
                                                    values=values))
    return base_request
def construct_request ( model_type , client_name , client_pass , command , values ) : base_request = ( "{model_type}?" "clnt={client_name}|{client_pass}&" "com={command}&{values}" . format ( model_type = model_type , client_name = client_name , client_pass = client_pass , command = command , values = values ) ) return base_request
Construct the request url.

    Inputs: - model_type: PServer usage mode type.
            - client_name: The PServer client name.
            - client_pass: The PServer client's password.
            - command: A PServer command.
            - values: PServer command arguments.

    Output: - base_request: The base request string.