Pylint and remove unused imports