more work on python (with an example)