Core: fixed pylint tests for wildcard imports
tools: write all changed files when migrating perms to mode