human
I wrote the below code

    import json, unicodedata
    with open(config_path) as config_file:
        data = json.load(config_file, encoding='utf8')
        if (verb > 2):
            print('###    Loaded    config    file', config_path, file=sys.stderr)
    def get_if_exist(key, default):
        return (data[key] if (key in data) else default)
    return Bunch(testfiles=get_if_exist('testfiles', []), onlyfailed=get_if_exist('onlyfailed', False), verb=get_if_exist('verb', 3), dump=get_if_exist('dump', 0), crc=get_if_exist('crc', 1), scapy=get_if_exist('scapy', 'scapy'), preexec=get_if_exist('preexec', {}), global_preexec=get_if_exist('global_preexec', ''), outfile=get_if_exist('outputfile', sys.stdout), local=get_if_exist('local', 0), num=get_if_exist('num', None), modules=get_if_exist('modules', []), kw_ok=get_if_exist('kw_ok', []), kw_ko=get_if_exist('kw_ko', []), format=get_if_exist('format', 'ansi'))

What's a good function header?
assistant
#Here's a good function header.

def parse_config_file(config_path, verb=3):