import fnmatch


def filter_out_bans(mappings, bans):
    """Get a list of mappings minus any that match the patterns in ``bans``
    
    :return: List of Mappings
    """
    new_mappings = []
    for mapping in mappings:
        for ban in bans:
            if fnmatch.fnmatch(mapping.pattern, ban):
                break
        else:
            new_mappings.append(mapping)
    return new_mappings