Php Find Index In Multidimensional Array In Python