code: def get_classname(obj):
      
      if isinstance(obj, javabridge.JB_Object):
          cls = javabridge.call(obj, "getClass", "()Ljava/lang/Class;")
          return javabridge.call(cls, "getName", "()Ljava/lang/String;")
      elif inspect.isclass(obj):
          return obj.__module__ + "." + obj.__name__
      else:
          return get_classname(obj.__class__)
docs: Returns the classname of the JB_Object, Python class or object.
  
      :param obj: the java object or Python class/object to get the classname for
      :type obj: object
      :return: the classname
      :rtype: str