Update and rename lex.py to m2.py