fixed final issues with lexer
added scanner.py to git repo