print(l)
['/test/fruit/banana', '/test/animal/penguin']
exclude_list = ['pen', 'banana']
l = [s for s in process_list if all(item not in os.path.basename(s) for
    item in exclude_list)]
print(l)
['/test/fruit/apple', '/test/fruit/pineapple', '/test/animal/python']
Elegant way to delete items in a list which do not has substrings that appear in another list