def findGroup(lines, name):
  """
  Finds the lines contained in the brackets of a given group's name
  """
  name_found = False
  start_ind, stop_ind = -1, -1
  depth = 0
  for ind, line in enumerate(lines):
    if name in line:
      name_found = True
    if name_found:
      if "{" in line:
        if depth == 0:
          start_ind = ind
          depth = 1
        else:
          depth += 1
      if "}" in line:
        if depth == 1:
          stop_ind = ind
          break
        else:
          depth -= 1
  return start_ind, stop_ind