def remdup(l):
    """
    REMDUP list

    outputs a copy of ``list`` with duplicate members removed.  If two
    or more members of the input are equal, the rightmost of those
    members is the one that remains in the output.
    """
    new = []
    for item in l:
        if item in new:
            new.remove(item)
        new.append(item)
    return new