def _packTerms(terms):
    """
	Packages terms into lists of 4.
	If the length of terms is not divisible by 4, then the final
	list is short a bit (but this is okay).
	"""
    segmentedTerms = []
    index = 0
    while True:
        endIndex = index + 4
        if endIndex >= len(terms):
            endIndex = len(terms)
            segmentedTerms.append(terms[index:endIndex])
            break
        else:
            segmentedTerms.append(terms[index:endIndex])
            index += 4
            continue
    for seg in segmentedTerms:
        seg.append(terms[0])
    return segmentedTerms
