def _get_index(column_name, headers):
  """Return the position in the headers list where column_name appears."""
  i = 0
  for header in headers:
    if header['name'] == column_name:
      return i
    i += 1
  return -1