def read_header(f):
    """Read header of kif file
    key：value


    Args:
        f: file object
    Returns:
        dictionary of header key - value
    """
    header = {}

    for line in f:
        if line[0:2] == '手数':
            break
        h = line.rstrip().split('：')
        if h and len(h) == 2:
            header[h[0]] = h[1]

    return header;