Update lookahead.py

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