How is it in any way philosophical or moral? If someone drops the snake, the snake feels pain, so the snake may associate that person and/or their scent with pain, IF they have the brainpower (jury's out). They can definitely tell what certain scents mean. I don't think they would be able to smell if that were not the case.