def uniqify(l):
    """uniqify in place"""
    s = set()
    idxs = []
    for i, item in enumerate(l):
        if item in s:
            idxs.append(i)
        else:
            s.add(item)
    for i in reversed(idxs):
        l.pop(i)
    return l
