def top_k_active_members(data, k):
    members_list = [value for (key, value) in data.items()]
    members_list.sort(key=(lambda x: x['activity_score']), reverse=True)
    return members_list[:k]
def top_k_active_members(data, k):
    members_list = [value for (key, value) in data.items()]
    members_list.sort(key=(lambda x: x['activity_score']), reverse=True)
    return members_list[:k]