code: def verify_file_private(filename):
      
      if platform.system().upper() != 'WINDOWS':
          filename = os.path.expanduser(filename)
          if os.path.exists(filename):
              file_stat = os.stat(filename)
              if mode_allows_group_or_other(file_stat.st_mode):
                  raise ValueError(CONFIG_FILE_PERMISSIONS_ERROR)
docs: Raises ValueError the file permissions allow group/other
      On windows this never raises due to the implementation of stat.