With their magic spells and prayers, they transferred the disease from the child into a crudely made puppet. The puppet was then burnt upon a pyre, completing the ritual.
You need that comma after pyre; without it, you’d be saying that the pyre itself was completing the ritual, which seems highly unlikely. Personification is fine, but only when you actually mean it. 🙂