def _find_pypeit_block(lines, group):
    """
    Find the PypeIt group block

    Args:
        lines (:obj:`list`):
            List of file lines
        group (:obj:`str`):
            Name of group to parse

    Returns:
        int, int: Starting,ending line of the block;  -1 if not present

    """
    start = -1
    end = -1
    for i, l in enumerate(lines):
        entries = l.split()
        if start < 0 and entries[0] == group and entries[1] == 'read':
            start = i+1
            continue
        if entries[0] == group and entries[1] == 'end':
            end = i
            continue
        if start >= 0 and end >= 0:
            break
    return start, end