import bpy bpy.context.object.data.sensor_width = 27.9 bpy.context.object.data.sensor_height = 18.6 bpy.context.object.data.sensor_fit = 'HORIZONTAL'