def unique(lst):
    """
    Returns a copy of 'lst' with only unique entries.
    The list is stable (the first occurance is kept).
    """
    found = set()

    lst2 = []
    for i in lst:
        if i not in found:
            lst2.append(i)
            found.add(i)

    return lst2