import bpy bpy.context.object.data.sensor_width = 17.3 bpy.context.object.data.sensor_height = 13.0 bpy.context.object.data.sensor_fit = 'HORIZONTAL'