I believe snakes are smarter then what people believe, look at the actions of some of them. I mean it seams they strike when you don't have food but then comes to you to crawl on you.
Or when my big girl, escaped after messing her cage with poop and dumping the waterbowl. I still believe she escaped and laid right next to me on my bed in balled up. As if she was telling me I needed to clean her cage.