code: def get_interfaces(self, socket_connection=None):
          
          if not socket_connection:
              socket_connection = self.open_connection()
              close_socket = True
          else:
              close_socket = False
  
          # noinspection PyUnresolvedReferences
          _service = self.handler(self._interfaces["org.varlink.service"], socket_connection)
          self.info = _service.GetInfo()
  
          if close_socket:
              socket_connection.close()
  
          return self.info['interfaces']
docs: Returns the a list of Interface objects the service implements.