If you are (or will be) participating in the MacTech Conference 2013 workshop "Python for Systems Administrators", you can find code snippets we'll be using during the workshop here. While you can participate in the workshop without these code snippets, having these will make participation much easier.
More info about MacTech Conference 2013:
Download a zip archive of the code snippets here.
Or git clone the repo:
git clone https://github.com/gregneagle/mtc2013_python.git
We recommend you use a text editor designed for coding use during the workshop; TextWrangler is free. Download it here.