You may want to tie the bag or use a VERY serious clip. I'd also recommend putting the bag in the cage so that if your snake does get out you know where it is.
The only drawback to this is that wet cloth does not allow as much airflow as dry cloth. Wet the bottom of the bag and maybe put a wet hand towel in the bag with the snake.