'Create a dictionary of all parameters'

def call(self, function, arguments=None):

    url = ('%s/%d/%s' % (self.baseUrl, self.API_VERSION, function))
    params = (arguments or {})
    params.update({'apikey': self.apiKey})
    data = urllib.urlencode(params, True)
    try:
        opener = urllib2.build_opener()
        request = urllib2.Request(url=url, data=data)
        response = opener.open(request, timeout=self.TIMEOUT)
        result = response.read()
        response.close()
    except urllib2.HTTPError:
        raise
    result = json.loads(result)
    if (result is None):
        raise ValueError('JSON    response    could    not    be    decoded')
    return self.handleResult(result)
