import uuid


def bytes_to_uuid(byte_array):
    """
    Converts a byte array (should be 16 bytes length) to a uuid object.
    :param byte_array: the byte array to convert
    :return: uuid object
    """
    return uuid.UUID(bytes=bytes(byte_array))