def main_loop(): global errname, errtime, error_detail, conclusion error_detail = "" facts_all = {} facts = [] buffer = 0 current_t