code: def write(filename, jobject):
      
      if isinstance(jobject, JavaObject):
          jobject = jobject.jobject
      javabridge.static_call(
          "Lweka/core/SerializationHelper;", "write",
          "(Ljava/lang/String;Ljava/lang/Object;)V",
          filename, jobject)
docs: Serializes the object to disk. JavaObject instances get automatically unwrapped.
  
      :param filename: the file to serialize the object to
      :type filename: str
      :param jobject: the object to serialize
      :type jobject: JB_Object or JavaObject