I agree Oliverian - something is drawing the ants in. I don't think, (if they are very tiny) that their mandibles could penetrate a snake's scales, however they can be bothersome. Clean the tank thoroughly, (I like to use a mild dish-soap diluted in water), and replace cleaned substrate, dishes and hides. I have have problems with 'sugar ants' in the past... they were lured into my geckos' enclosures by water... They would gather and drink non-stop. You may need to change the location of the tank to solve this problem. Good Luck!