def skipHeader(infile):
  """
  skip the lines beginning with a '!'
  """
  ## find where the header ends
  counter = 0
  while infile.readline().startswith("!"):
    counter += 1

  ## reposition the file iterator
  infile.seek(0)
  for i in range(0, counter):
    infile.readline()

  return infile