Translation into python of and ADC example of the same name.
