Added pylint. Fixed lint errors.