import uuid


def generateUuid5(nameComponents, namespace=uuid.NAMESPACE_URL):
    """
    generate a uuid5 where the name is the lower case of concatenation
    of nameComponents
    """
    strings = []
    for nameComponent in nameComponents:
        # was having trouble with openpyxl data not being ascii
        strings.append(nameComponent.encode('ascii', 'ignore'))
    name = "".join(strings).lower()
    id = str(uuid.uuid5(namespace, name))
    return id