I have a former co-worker who raises exotic looking snakes and he posts them on Facebook. He’s not a dumb guy but on this matter I think he’s an idiot. Eff snakes and not to be trusted as pets.
Snakes brains do basically mammal brain stem functions and little more. They don't recognize owners, friends, etc. You're either food, not food, a threat or not a threat. That's about as deep as they think. That day the snake decided my neighbor was food and he almost was.
Cats and dogs will eat their master.