Update lookahead.py for python 3

1. range() is recommended new way over xrange()
2. iterator.next() or next(iterator) ? especially for python3