Hello andrey.d,
sensor.width and sensor.height should correspond to the image dimensions in the group, so you shouldn't change them.
To change the pixel size and focal length (both in mm) parameters use the following code sample:
sensor.focal_length = 3.97
sensor.pixel_height = 0.00134
sensor.pixel_width = 0.00134
If you need to add images to the chunk, I recommend to use chunk.addPhotos() function and pass the list of paths to the images as an argument to it, rather than using addCamera() function.