initial port from c# to python
(start porting with iec ramps and testsource and toe895x)