  
      # Various helper methods
      def write_to_log(self, changes):
          print("Writing sort log to: {}".format(self.args.log_file_path))
          with open(self.args.log_file_path, 'w') as lf:
              lf.write(self.serializer.marshal(changes))
  
      def reload_images(self, group_method, img_list):
          """
          Reloads the image list by replacing the comparative values with those
          that the chosen grouping method expects.
 
</s>
        with open(self.args.log_file_path, 'w') as lfile:
            lfile.write(self.serializer.marshal(changes))
  
      # Various helper methods
      def write_to_log(self, changes):
          print("Writing sort log to: {}".format(self.args.log_file_path))
        with open(self.args.log_file_path, 'w') as lfile:
            lfile.write(self.serializer.marshal(changes))
        with open(self.args.log_file_path, 'w') as lfile:
            lfile.write(self.serializer.marshal(changes))
  
      def reload_images(self, group_method, img_list):
          """
          Reloads the image list by replacing the comparative values with those
          that the chosen grouping method expects.
keep keep keep keep replace replace keep keep keep keep keep
 Sort tool bugfixes and linting
tools/sort.py