A Python translation of `corrida.for`.