old_contents: import dbus
  
  
  __all__ = ['client']
  
  
  bus = dbus.SessionBus()
  obj = bus.get_object('ua.douhack.marvin', '/ua/douhack/marvin')
  client = dbus.Interface(obj, 'ua.douhack.marvin')
  
new_contents: import dbus
  
  
  __all__ = ['client']
  
  
  class Client(object):
      def __init__(self):
          bus = dbus.SessionBus()
          obj = bus.get_object('ua.douhack.marvin', '/ua/douhack/marvin')
          self.server = dbus.Interface(obj, 'ua.douhack.marvin')
  
      def echo(self, msg):
          return str(self.server.echo())
  
      def list_files(self):
          return map(str, list(self.server.list_files()))
  
  
  client = Client()
  
subject: Rewrite client, cast return values to python types