Electromagnetic Field Simulation With Python