Created lex.py with tests for storing dictionary tools.