fix some pylint checks and remove unused modules