changed cursor() from recursion to while loop
	modified:   api.py
Merge remote-tracking branch 'upstream/master' into non-recursive-cursor
Merge pull request #284 from drevicko/non-recursive-cursor

changed cursor() from recursion to while loop