Move import traceback to toplevel