CETD simulator with py code, stable V4