[py] take a copy for the last source block when iterating