python electric field simulation. A Python script provides the flex