import bpy bpy.context.object.data.sensor_width = 24.89 bpy.context.object.data.sensor_height = 18.66 bpy.context.object.data.sensor_fit = 'HORIZONTAL'