These snakes are much smarter than we think.