Remove unused code and import, add pylint ignore to import