Php Push Json To Array Python Methods