import bpy
bpy.context.camera.sensor_width = 5.371
bpy.context.camera.sensor_height = 4.035
bpy.context.camera.lens = 2.77
bpy.context.camera.sensor_fit = 'AUTO'