python example functionally similar to others