def uniq(s):
    """Return unique items in given sequence, preserving order."""
    # http://stackoverflow.com/a/480227
    seen = set()
    return [ i for i in s if i not in seen and not seen.add(i)]