def nextLine(lines, line):
	"""Increment line number.  If the new line is a comment, continue
	incrementing until a non-comment line is found, or the last line is
	reached.
	"""
	maxLines = len(lines)
	line = line + 1
	while (line < maxLines):
		newLine = lines[line].lstrip()
		if ((newLine != "") and (newLine[0] != "#")):
			return(line)
		line = line + 1
	return line