                  self.args.log_file_path = os.path.join(self.args.input_dir,
                                                         'sort_log.json')
  
              # Set serializer based on logfile extension
              serializer_ext = os.path.splitext(
                  self.args.log_file_path)[-1]
              self.serializer = Serializer.get_serializer_from_ext(
                  serializer_ext)
  
          # Prepare sort, group and final process method names
          _sort = "sort_" + self.args.sort_method.lower()
          _group = "group_" + self.args.group_method.lower()
          _final = "final_process_" + self.args.final_process.lower()
 
</s> remove         self.serializer = JSONSerializer
 </s> add         self.serializer = get_serializer("json") </s> remove         self.serializer = JSONSerializer
 </s> add         self.serializer = get_serializer("json") </s> remove         serializer = Serializer.get_serializer("json")
 </s> add         serializer = get_serializer("json") </s> remove                                                    self.serializer.ext))
            logger.debug("File extension set from serializer: '%s'", self.serializer.ext)
 </s> add                                                    self.serializer.file_extension))
            logger.debug("File extension set from serializer: '%s'",
                         self.serializer.file_extension) </s> remove         self.serializer = Serializer.get_serializer("json")
 </s> add         self.serializer = get_serializer("json")
            self.serializer = get_serializer_from_filename(self.args.log_file_path)
                  self.args.log_file_path = os.path.join(self.args.input_dir,
                                                         'sort_log.json')
  
              # Set serializer based on logfile extension
            self.serializer = get_serializer_from_filename(self.args.log_file_path)
            self.serializer = get_serializer_from_filename(self.args.log_file_path)
            self.serializer = get_serializer_from_filename(self.args.log_file_path)
            self.serializer = get_serializer_from_filename(self.args.log_file_path)
  
          # Prepare sort, group and final process method names
          _sort = "sort_" + self.args.sort_method.lower()
          _group = "group_" + self.args.group_method.lower()
          _final = "final_process_" + self.args.final_process.lower()
keep keep keep keep replace replace replace replace keep keep keep keep keep
 Standardize serialization (#903)

* Standardize serialization

- Linting
- Standardize serializer use throughout code
- Extend serializer to load and save files
- Always load and save in utf-8
- Create documentation 
tools/sort.py