          self.batchsize = self.get_batchsize(queue_size)
          self.args = arguments
          self.in_queue = in_queue
          self.out_queue = queue_manager.get_queue("patch")
          self.serializer = Serializer.get_serializer("json")
          self.faces_count = 0
          self.verify_output = False
          self.model = self.load_model()
          self.output_indices = {"face": self.model.largest_face_index,
                                 "mask": self.model.largest_mask_index}
 
</s> remove         self.serializer = Serializer.get_serializer("json")
        filename = "{}_state.{}".format(model_name, self.serializer.ext)
 </s> add         self.serializer = get_serializer("json")
        filename = "{}_state.{}".format(model_name, self.serializer.file_extension) </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_ext = os.path.splitext(
                self.args.log_file_path)[-1]
            self.serializer = Serializer.get_serializer_from_ext(
                serializer_ext)
 </s> add             self.serializer = get_serializer_from_filename(self.args.log_file_path) </s> remove         serializer = Serializer.get_serializer("json")
 </s> add         serializer = get_serializer("json")
        self.serializer = get_serializer("json")
          self.batchsize = self.get_batchsize(queue_size)
          self.args = arguments
          self.in_queue = in_queue
          self.out_queue = queue_manager.get_queue("patch")
        self.serializer = get_serializer("json")
          self.faces_count = 0
          self.verify_output = False
          self.model = self.load_model()
          self.output_indices = {"face": self.model.largest_face_index,
                                 "mask": self.model.largest_mask_index}
keep keep keep keep 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 
scripts/convert.py