Avoid un-balanced push/pop usage (which can interfere with Blender's internal state) using a context manager.