This function prints out a given traceback and exception to sys.stderr.
sys.excepthook(type, value, traceback)