fix all pylint warnings
added quick syntax check to script