import bpy bpy.context.object.data.sensor_width = 27.90 bpy.context.object.data.sensor_height = 18.60 bpy.context.object.data.sensor_fit = 'HORIZONTAL'