Do you have tape keeping the foil on? Snakes have a way of finding tape and getting stuck to it if it's anywhere near their enclosure.
Aside from that, covering roughly 2/3 of the tank top usually works fine for humidity; cling-wrap or covering part of the lid with a damp towel also works.