core.py linter fix