import bpy bpy.context.object.data.sensor_width = 36.0 bpy.context.object.data.sensor_height = 23.9 bpy.context.object.data.sensor_fit = 'HORIZONTAL'