Fixed typo.
Added deletion dictionary generatior function to lex.py