added pylint checking, fixed reported errors