Pine and Cedar both have chemicles in it that are toxic to most reptiles. Snakes included.
The oils in these two woods will cause a respatory infection and make your snake sick and eventually kill it. It will show up as a rash around the eyes and nose. Stay away from these two woods.