traceback.print_stack(file=open('/home/yz/log.txt', 'a'))