import bpy bpy.context.camera.sensor_width = 16.65 bpy.context.camera.sensor_height = 9.36 bpy.context.camera.sensor_fit = 'HORIZONTAL'