exclude = ['lulz', 'lmfao', '.png']
filter_func = lambda s: 'http://' in s and not any(x in s for x in exclude)
matching_lines = list(filter(filter_func, string_list))
If string does not contain any of list of strings in python