since the pestilence had come upon them , hundreds of these penitents had taken to the streets , flaying themselves with iron tipped whips , praying to god that they could be spared by their blood and their sacrifice .