Modified the setup.py for flake8, renamed test to tests, Minor edits for lex.py, Rewriting tests

All tests for lex are currently being re-written
Reset to lex.py what it it was before last commit as writing tests, for both future (re-factored) and current code)