USe next() for python 3 compatability