Python Check If Array Contains Key