u"""Get txt from clipboard. if paste_list==True the convert tab separated 
    data to list of lists. Enclose list of list in array() if all elements are 
    numeric

def get_clipboard_text_and_convert(paste_list=False):
    u"""Get txt from clipboard. if paste_list==True the convert tab separated 
    data to list of lists. Enclose list of list in array() if all elements are 
    numeric"""
    txt = GetClipboardText()
    if txt:
        if paste_list and u"\t" in txt:
            array, flag = make_list_of_list(txt)
            if flag:
                txt = repr(array)
            else:
                txt = u"array(%s)"%repr(array)
            txt = u"".join([c for c in txt if c not in u" \t\r\n"])
    return txt