Update lexical_analyzer.py

Working on indexing issue