python: added iterator flags and types