def _uniq(lst):
    """ Return the unique elements from a list. 
        Retrieved from https://www.peterbe.com/plog/uniqifiers-benchmark """

    seen = set()
    seen_add = seen.add

    return [i for i in lst if not (i in seen or seen_add(i))]