Correct iter call for python 3
Remove excess logging