Since we no longer support 2.5 we can use the builtin next() function