def unique(seq, blanks=True):
    """returns a list of unique elements from seq"""
    ret = []
    for e in seq:
        if e not in ret and (blanks or not blanks and e):
            ret.append(e)
    return ret
