check if part of string exists in list python