def request_json(response):
    """Signature for response.json varies between
    requests versions, this wrapper finds out which api
    to use
    """
    if hasattr(response.json, '__call__'):
        return response.json()
    else:
        return response.json