Completed lexer.py