I've also heard (in the case of something that isn't large enough to physically harm you) that sleeping on the floor in a room you think the snake may be in for a night or two with the air low and the doorway sealed off that the snake will come to you for warmth.