Python Check If Array Contains String Method