You are supposed to keep your dog(s) close to you, like the trusty friend that they are, to alert/protect you from things like that python and vice versa.
Why else would you have a dog?
My husband always had two dogs. Two, so they would never be alone...and they were good buddies.
I would REALLY like to see the death penalty, WITH "cruel and unusual punishment" for people who mistreat ANY animal.
One appropriate punishment: having to listen to Ethel Merman sing "There's NO Business Like Show Business" for an hour. Worse punishment=listening to her longer.