Php Index Of Element In Array Python