Spike contour design scrpit translated into python. engine simulation.