def enums_chunker(enums):
    """Takes the enums string and breaks it up into chunks of 32000 characters or less so that they can fit in
    the 32000 char limit of an Excel cell"""

    chunks =[]
    while len(enums) > 32000:
        chunk =enums[32000:]
        sep = chunk.index(' | ')
        chunks.append(enums[:32000+sep])
        enums = enums[32000+sep:]
    chunks.append(enums)
    return chunks