Php Create Json Array Python Question