old_contents: import multiprocessing, sys, datetime
  from common import settings
  
  print_lock = multiprocessing.RLock()
  def safeprint(content, verbosity=0):
      """Prints in a thread-lock, taking a single object as an argument"""
      string = "[" + str(multiprocessing.current_process().pid) + "] " + datetime.datetime.now().strftime('%H:%M:%S') + ": " + str(content) + '\r\n'
      with print_lock:
          with open("output.txt","a") as log:
              log.write(string)
          if settings.config.get('verbose') >= verbosity:
              sys.stdout.write(string)
  
new_contents: import multiprocessing, sys, datetime
  from common import settings
  
  print_lock = multiprocessing.RLock()
  def safeprint(content, verbosity=0):
      """Prints in a thread-lock, taking a single object as an argument"""
      string = "[" + str(multiprocessing.current_process().pid) + "] " + datetime.datetime.now().strftime('%H:%M:%S') + ": " + str(content) + '\r\n'
      with print_lock:
          with open("output.txt","a") as log:
              log.write(string)
          sys.stdout.write(settings.config.get('verbose'))
          sys.st
          if settings.config.get('verbose') >= verbosity:
              sys.stdout.write(string)
  
subject: Update safeprint.py