Get Array Index Python Function Parameters