remove the first n items that match a condition in a python list,"[10, 9, 8, 4, 7]"