def get_page_range_from_response(response, start_from=1):
    """Returns a range of pages from Slack API response

    :param response: Slack API JSON response
    :return: Range of pages
    """
    return range(start_from, response['paging']['pages'] + 1)