code: def chmod(f):
      
      try:
          os.chmod(f, S_IWRITE)  # windows (cover all)
      except Exception as e:
          pass
      try:
          os.chmod(f, 0o777)  # *nix
      except Exception as e:
          pass
docs: change mod to writeable