Exceptions
Ned Batchelder has written a concise tutorial on the use of exceptions in Python. A slight improvement would be to illustrate the creation of new exception classes. Will do that here if time allows. Consider the following:
import exceptions
import pprint
class MyException(exceptions.Exception):
def __init__(self, value, **kwargs):
self.value [...]