Whenever I write to the files, sometimes python would error when the file is being read by a other program. The common error I would get is:
Traceback (most r