import bpy
bpy.context.camera.sensor_width = 22.2
bpy.context.camera.sensor_height = 12.6
bpy.context.camera.sensor_fit = 'HORIZONTAL'