Without seeing it, I'm not quite sure what the milky substance was. However, if the snake was not eating, I would say that that was a possible cause of death. Without further information, I'm not sure that anyone could give you a definitive cause of death.