pidl/python: Specify memory context explicitly when returning Python objects.