check if partial string is in list python