def multifilter(filters, iterable):
    """
    Like the builtin filter(), but takes an iterable of functions for the
    first argument.
    """
    for f in filters:
        iterable = filter(f, iterable)
    return iterable
