New example converted from c example20 to python