move grammar to own directory
analyize and cleanup code with pylint

Running pylint on adam (file 1/8)..	10/10.00	PASSED
Running pylint on adamcore.py (file 2/8)..	10/10.00	PASSED
Running pylint on adamgui.py (file 3/8)..	8.2/10.00	PASSED
Running pylint on adaption.py (file 4/8)..	9.6/10.00	PASSED
Running pylint on contextmenu.py (file 5/8)..	9.2/10.00	PASSED
Running pylint on delegate.py (file 6/8)..	9.4/10.00	PASSED
Running pylint on grammar.py (file 7/8)..	8.8/10.00	PASSED
Running pylint on treewidget.py (file 8/8)..	9.0/10.00	PASSED