When you try and get tape off a snake, it can rip off scales. That leaves it open to infection. Plus it hurts the snake like heck.
Blu-Tack is a good sticky thing I've used with snakes. Sticks to most stuff, but won't stick to snakes. Good for plugging little gaps in lids etc.