'call a method on the remote server'

def __request(self, methodname, params):

    request = dumps(params, methodname, encoding=self.__encoding, allow_none=self.__allow_none)
    response = self.__transport.request(self.__host, self.__handler, request, verbose=self.__verbose)
    if (len(response) == 1):
        response = response[0]
    return response
