added iterator handlers to the swig template