You can try putting in a container that is kinda small for the snake and covering with a shirt or towel. It worked for me in the past. I think it's the combination of complete darkness and boredom that does it