haven't looked at the code - but the above is a good sign
you're
iterating over a string object not a list object.
try this and you'll see:
foo='lalalalal'
for item in foo:
print item
do a type() on the object you're getting the output from above and I bet
it's as string not a list.
-sv
Good call, that fixed it :).
Thanks,
~tom