def get_page(data, page):
    """Get nth page of a data, with each page having 20 entries."""
    begin = page * 20
    end = page * 20 + 20
    if begin >= len(data):
        return []
    elif end >= len(data):
        return data[begin:]
    else:
        return data[begin:end]