python: update after the latest change on PPC in the core