def extract_results_in_range(start_index, end_index, keys, total_results):
    """
    Given the indexes and keys this method loop between indexes
    :param start_index:
    :param end_index:
    :param keys:
    :param total_results:
    :return:
    """
    return {k: total_results[k] for k in keys[start_index:end_index]}