Php Foreach Key Value Multidimensional Array In Python