def bytes_to_uuid_list(byte_array):
    """
    Converts a byte array to a list of uuids. Cuts the byte array by packets of 16 bytes and parse each as uuid.
    :param byte_array: a byte array of length n*16
    :return: a list of uuid objects
    """
    result = []
    for i in range(0, len(byte_array)//16):
        result.append(uuid.UUID(bytes=bytes(byte_array[i*16:i*16+16])))
    return result
Converts a byte array to a list of uuids. Cuts the byte array by packets of 16 bytes and parse each as uuid.
    :param byte_array: a byte array of length n*16
    :return: a list of uuid objects