implement chained exception tracebacks

patch from Antoine Pitrou #3112
10 files changed