code: def _request(self, function, params, method='POST', headers={}):
          
          
          if method is 'POST':
              params = urllib.parse.urlencode(params)
              headers = { "Content-type": "application/x-www-form-urlencoded", "Accept": "text/plain" }
          
          path = '/%s/%s' % (self._version, function)
          
          self._conn.request(method, path, params, headers)
          return self._conn.getresponse()
docs: Builds a request object.