import bpy bpy.context.object.data.sensor_width = 16.65 bpy.context.object.data.sensor_height = 9.36 bpy.context.object.data.sensor_fit = 'HORIZONTAL'