It seems risky to modify `sys`. Is there a different way to accomplish the same outcome (printing the traceback, I think)?