def seq_strip(seq, stripper=lambda x: x.strip()):
    """ Strip a sequence of strings.
    """
    if isinstance(seq, list):
        return map(stripper, seq)
    if isinstance(seq, tuple):
        return tuple(map(stripper, seq))
    raise ValueError('%s of unsupported sequencetype %s' % (seq, type(seq)))
