Python code examples from OReilly