code: def write_all(filename, jobjects):
      
      array = javabridge.get_env().make_object_array(len(jobjects), javabridge.get_env().find_class("java/lang/Object"))
      for i in xrange(len(jobjects)):
          obj = jobjects[i]
          if isinstance(obj, JavaObject):
              obj = obj.jobject
          javabridge.get_env().set_object_array_element(array, i, obj)
      javabridge.static_call(
          "Lweka/core/SerializationHelper;", "writeAll",
          "(Ljava/lang/String;[Ljava/lang/Object;)V",
          filename, array)
docs: Serializes the list of objects to disk. JavaObject instances get automatically unwrapped.
  
      :param filename: the file to serialize the object to
      :type filename: str
      :param jobjects: the list of objects to serialize
      :type jobjects: list