grantlee_strings_extractor.py: port to next() for iterators

Authored by pino on Jul 3 2018, 5:12 AM.

Description

grantlee_strings_extractor.py: port to next() for iterators

Assume Python >= 2.7, and use the next() builtin to advance an iterator,
for Python 3 compatibility.