Get Array Index Python Function Example