YOu want to think again, hamster are the first thing I bred as a teen (hand raised loved and the worst bites in history), they have longer teeth, they are more aggressive than rats not to mention for snakes they are the equivalent of drugs.they were hand raised and don't bite and also too small to do anything.
Even at that size one wrong strike and the hamster can inflict severe damage.JCP is a full grown 6.5' Adult.
Rule of thumb if a snake does not eat a live prey within 10 min 20 max you need to remove it, because it will not get eaten.
At the size of your carpet you are gonna have to wait it out and it could be 6 months a year and if you are gonna do that this is the perfect opportunity to switch the animal to F/T rats (considering the rat size an adult need F/T are a better option for that species)
Find a home for those hamsters and use tough love, carpets can be tricky to switch I have had some that took me a year to switch completely to rats.