Python Array Check If Contains Function