Remove unused import from scheduler
pep8ify all imports in core files