text: from __future__ import print_function
  import sys
  
  import Pyro4
  import Pyro4.errors
  
  
  if sys.version_info < (3, 0):
      input = raw_input
  
  uri = input("Enter the URI of the thirdparty library object: ")
  with Pyro4.core.Proxy(uri) as remote:
      print(remote.method("how are you?"))
  
      try:
          print(remote.weird())
      except Pyro4.errors.SerializeError:
          print("couldn't call weird() due to serialization error of the result value!")
  
      try:
          print(remote.private())    # we can call this if full class is exposed...
      except AttributeError:
          print("couldn't call private(), it doesn't seem to be exposed! (which is ok!)")
  