def _request(self, path, parameters):
        # Throw out parameters where the value is not None
        parameters = dict([(k,v) for k,v in parameters.items() if v])
        
        query_str = urllib.urlencode(parameters)

        request = urllib2.Request((self.url_base, path, query_str) % "%s%s?%s", headers={"Cookie": self._request_cookie})
        _log.debug("requesting: %s", request.get_full_url())

        data = None
        try:
            response = urllib2.urlopen(request)
            data = response.read()
            response.close()
        except urllib2.HTTPError as httperror:
            data = httperror.read()
            httperror.close()

        #_log.debug("response: %s", data)

        return ET.fromstring(data.strip())
dataset/ETHPy150Open wadey/python-fitbit/fitbit/client.py/Client._request/swapped operands of `%`