python: Make result wrapping backwards compatible.