Back when I owned a three-story stone house in the Connecticut River Valley, I often found the shed skins of black snakes in the attic. And of course I wondered how on earth they got there.
This video explains it.
Fair warning: If you are scared of snakes, you may never want to open your windows again.