'Wrapper around requests.request()
Prepends BASE_URL to path.
Adds self.oauth_token to authorization header.
Parses response as JSON and returns it.'

def request(self, path, method='GET', params=None, data=None, files=None, headers=None, raw=False, allow_redirects=True, stream=False):

    if (not headers):
        headers = {}
    headers['Authorization'] = ('token    %s' % self.access_token)
    if path.startswith(('http://', 'https://')):
        url = path
    else:
        url = (BASE_URL + path)
    logger.debug('url:    %s', url)
    response = self.session.request(method, url, params=params, data=data, files=files, headers=headers, allow_redirects=allow_redirects, stream=stream)
    logger.debug('response:    %s', response)
    if raw:
        return response
    return _process_response(response)
