#!/usr/bin/env python

from nodes import Node

class Iterator(Node):
    char = "o"
    args = 0
    results = 1
    contents = 0
    
    def iterate(self):
        """contents += 1
return contents-1"""
        Iterator.contents += 1
        return Iterator.contents-1
@@ -140,15 +140,12 @@
 def 
-iterate
+func
 (sel
@@ -194,16 +194,49 @@
 ts-1%22%22%22%0A
+        print(Iterator.contents)%0A
         

Fix iterator