renderers.pyobjects: apply some upstream updates

These are pretty old updates, and (I think) the last that can be applied to this backport.