python: howto and examples