import bpy bpy.context.camera.sensor_width = 23.760 bpy.context.camera.sensor_height = 13.365 bpy.context.camera.sensor_fit = 'HORIZONTAL'