Python Check If Json Array Contains Cosmos