I'm getting
TypeError: 'NoneType' object is not iterable
on this line:
temp, function = findNext(function)
and have no idea why this is failing. I am using function in while loops:
while 0 < len(function):
…
but am not iterating through it. All of the returns in findNext(function) are pretty much
return 'somestring',function[1:]
and cannot understand why it thinks I'm iterating on one of those objects.