def delistify(some_list):
    """
    Untangle multiple nested one-element lists.

    Occasionally a problem in Libris,
    e.g. "[['x']]". Converts it to 'x'.

    @param some_list: list to convert.
    @type some_list: list
    """
    while isinstance(some_list, list) and len(some_list) == 1:
        some_list = some_list[0]
    return some_list