Fixed traceback not imported in core.py

Minor import fix