import bpy bpy.context.object.data.sensor_width = 6.97 bpy.context.object.data.sensor_height = 3.92 bpy.context.object.data.sensor_fit = 'HORIZONTAL'