return menu items by page from list: colors

def menu_pages(colors, page=1, print_keys=True, per_page=15):
    """return menu items by page from list: colors"""

    c = os.system('clear')
    length = len(colors)
    last_page = length / per_page
    if (last_page * per_page) < length:
        last_page += 1

    page_display = "page (%d/%d)" % (page, last_page)
    start = per_page * (page - 1)
    keys = """
(j/k): Next/Previous page, (J/K): Transparency Down/Up

(P/p): set prefix,         (Q/q): Quit

Or simply enter the number of a theme
    """

    print '=' * 30
    print page_display
    print '-' * len(page_display)

    for i,v in enumerate(colors[start : start + per_page]):
        print '%2d) %s' % (i + start + 1, v)

    print '=' * 30
    print 'Current theme is: %s' % get_current()
    print 'Transparency: %%%d' % transparency
    print '=' * 30

    if(print_keys):
        print keys