python check if part of string is in list