lift deeply nested expressions out of redundant parentheses

def _remove_otiose(lst):
    """lift deeply nested expressions out of redundant parentheses"""
    listtype = type([])
    while type(lst) == listtype and len(lst) == 1:
        lst = lst[0]

    return lst