Php Get Key From Multidimensional Array In Python