Get Array Index Python Dictionary Check