Carpet beetle? Is it the very small ones (bed bugs) that bite?? No matter what it is here is one thing you can do to avoid harming your snake. A flea and tick powder or sevin dust (garden bug powder) sprinkled on your carpets. That stuff will get rid od just about anything, Leave it there for at least 24 hours and then vacuume or sweep it all up. Just dont let your snake come in contact with it while its there.