Improve ses3d_fields.py.