python check if string contains substring from list