def create_request(cmd, **kwargs):
    """Creates a properly formatted request dictionary

    Args:
        cmd (str): command name
        **kwargs (dict, optional): keyword arguments to specify for command

    Returns:
        dict: request formatted dictionary containing parameters
    """
    req = {'name': cmd}
    if kwargs is not None:
        req['args'] = kwargs
    return req
