test.py, train.py: simplified code and used pylint to improve code; view.py: added option to show raw