import re


def check_ignore(item, ignores=[]):
    """
    take a string (item)
    and see if any of the strings in ignores list are in the item
    if so ignore it.
    """
    ignore = False
    for i in ignores:
        if i and re.search(i, str(item)):
            # print "ignoring item: %s for ignore: %s" % (item, i)
            ignore = True
    return ignore