Add more shard iterator types.
Fixes for other python versions.