You mean the clear plastic runner on the glass door, right?

Aquarium-grade Silicon is possibly your best choice, but it does not dry quickly. You don't need alot. Just let it cure for 8-24 hrs and you are good. You may need to put the snake elsewhere for that time, though if the cage is large I doubt the odor will be enough to bother the snake if you left it in there.
-----
Mark