Blender 2.9x Python API Render with White Background

How can I add a white background with Python API to my render. I tried with alpha_mode but it is not working as expected

This is a forum for core Blender development. For questions about how to use Blender, see here: