Python3 doesn't support iter.next