A 6-foot-long python slithered into a home in Australia and attacked a 10-week-old puppy while it was sleeping. However, the dog managed to escape after its owners pulled the snake off the canine.

Sunshine Coast resident Kelly Morris said she and her partner heard their puppy Wally yelping in pain and found him in a pool of blood.

"We heard a horrible sound and we thought he might have fallen or got stuck so we ran downstairs, and it was like something from a horror movie," she said, according to ABC News. "There was fluid everywhere, he'd weed and pooed himself and there was blood everywhere."

The carpet python had coiled itself around Wally and had its fangs on the dog's neck.

"He appeared to be OK, but his little eyes were starting to roll back in his eyelids," Morris said. "There was a lot of noise and the girls [our daughters] were getting upset, the commotion woke them up... We managed to get it off and into a pillowcase and put the snake in a rubbish bin so it couldn't get anywhere.

"We took [Wally] to the emergency vet in Tanawha and they did an X-ray on his little rib cage and everything to make sure he was OK.

Morris said Wally was recovering well. She added that the python had slithered inside their home to find the dog.

"And it was a real shock because the python had to go past four chickens — the whole chicken coop — before it came inside to poor Wally on the couch," she said. "He was obviously looking for something warm... And there was just this lovely snack [Wally] sitting on the couch."

Sunshine Coast Snake Catchers 24/7 were informed about the incident and its crew arrived at the scene to capture and relocate the reptile. Snake catcher Stuart McKenzie said it was a startling sight, ABC News reported.

"Brendan went out after receiving the panicked call and when he got there it was just blood everywhere, all over the lady," McKenzie said, adding that Wally was lucky to be alive.

"When a snake's in hunting mode they're extremely powerful and extremely strong … it doesn't take long for the snake to constrict," he said. "Luckily, they managed to get the snake off before we got there so the hard work was done."

python
This representational image shows a python on a tree inside his enclosure at the Dhupguri snake park in India, Feb. 8, 2006. REUTERS/Rupak De Chowdhuri