It's difficult to be certain without being able to test it but If cursor is some kind of iterable list, you seem to be nearly there.
Try changing the second line to:
myDoc = cursor.RunMethod("first", Null)
I don't know what the type myDoc should be, is should be in the documentation.