code: def dlog(msg, log_path=DEFAULT_LOG_PATH):
    
    with open(log_path, 'a') as f:
      f.write('\n{}@{}: {}'.format(os.getpid(), threading.current_thread().name, msg))
docs: A handy log utility for debugging multi-process, multi-threaded activities.