def _call(self, method, path, data=None):
if is_python3():<EOL><INDENT>conn = http.client.HTTPConnection(API_HOST)<EOL><DEDENT>else:<EOL><INDENT>conn = httplib.HTTPConnection(API_HOST)<EOL><DEDENT>headers = {'<STR_LIT>' : USER_AGENT}<EOL>if data:<EOL><INDENT>headers.update( {'<STR_LIT>': '<STR_LIT>'} )<EOL>conn.request(method, path, self._urlencode(data), headers)<EOL><DEDENT>else:<EOL><INDENT>conn.request(method, path, None, headers)<EOL><DEDENT>response = conn.getresponse()<EOL>result   =  [response.status, self._parse_body(response.read())]<EOL>conn.close()<EOL>return result<EOL>
Do the actual HTTP request