Hard to tell by that description alone... perhaps a regurgitated food item or maybe even bloody pus from the snake's mouth. You may want to consider a visit to a qualified reptile vet.