A giant python in Indonesia met an unfortunate end when it was eaten after it lost a battle with a local man.