Get Index Of Last Element In Array Python Definition