Secure the snake in a pillow case, put the pillow case in a shallow tub, and put the tub under your covers with you when you sleep. The pillow case keeps the snake secure, and the tub ensures that you or other pets that sleep with you won't crush it and if your snake happens to pee overnight it won't make a mess in your bed.