Allow Python iterators to be used as Rust iterators