How can I catch output from "traceback.print_exc()"? I would to be able to do is write the information in a file . I