def check_string(text, word_list):
    return any(phrase in text for phrase in word_list)

def check_file(filename, word_list):
    with open(filename) as some_file:
        return any(check_string(line, word_list) for line in some_file)
black_list = ['ab:', 'cd:', 'ef:', 'gh:']
print(check_file('some_file.txt', black_list))
Как проверить, находятся ли элементы списка в строке