Fix py renderer example

The example had an incorrect data structure, this commit fixes that.

Resolves #7952