core: Fix shadowed import

Catched by new stricter flake8