Larger snakes will do this often when they think their enclosure is too small. Some will really mess up their noses. Some will stop this when you get them in a bigger cage. Some will never stop and just continue to do it. It's a sad thing to see.